mirror of
https://github.com/casey/just.git
synced 2024-11-22 10:26:26 +03:00
Add screenshot to readme (#911)
This commit is contained in:
parent
c76805ab9e
commit
06d207a1ab
13
README.adoc
13
README.adoc
@ -14,18 +14,7 @@ image:https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg[say thanks,link=mai
|
||||
|
||||
Commands, called recipes, are stored in a file called `justfile` with syntax inspired by `make`:
|
||||
|
||||
```make
|
||||
build:
|
||||
cc *.c -o main
|
||||
|
||||
# test everything
|
||||
test-all: build
|
||||
./test --all
|
||||
|
||||
# run a specific test
|
||||
test TEST: build
|
||||
./test --test {{TEST}}
|
||||
```
|
||||
image:screenshot.png[screenshot]
|
||||
|
||||
You can then run them with `just RECIPE`:
|
||||
|
||||
|
15
examples/screenshot.just
Normal file
15
examples/screenshot.just
Normal file
@ -0,0 +1,15 @@
|
||||
alias b := build
|
||||
|
||||
host := `uname -a`
|
||||
|
||||
# build main
|
||||
build:
|
||||
cc *.c -o main
|
||||
|
||||
# test everything
|
||||
test-all: build
|
||||
./test --all
|
||||
|
||||
# run a specific test
|
||||
test TEST: build
|
||||
./test --test {{TEST}}
|
BIN
screenshot.png
Normal file
BIN
screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 353 KiB |
Loading…
Reference in New Issue
Block a user