Add example of running a command to top of readme (#307)

This commit is contained in:
Casey Rodarmor 2018-03-05 13:12:50 -08:00 committed by GitHub
parent 76ac5098e5
commit ec56336df7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,15 @@ test TEST: build
./test --test {{TEST}}
```
You can then run them with `just COMMAND`:
```sh
$ just test
cc *.c -o main
./test --all
Yay, all your tests passed!
```
`just` produces detailed error messages and avoids `make`’s idiosyncrasies, so debugging a justfile is easier and less surprising than debugging a makefile.
If you need help with `just` please feel free to open an issue or let me know on link:https://gitter.im/just-because/Lobby[gitter]. Feature requests and bug reports are always welcome!