mirror of
https://github.com/casey/just.git
synced 2024-11-27 09:15:08 +03:00
23 lines
571 B
Markdown
23 lines
571 B
Markdown
`just` is a handy way to save and run project-specific commands.
|
|
|
|
Commands are stored in a file called `justfile` or `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}}
|
|
```
|
|
|
|
`just` produces detailed error messages and avoids `make`'s idiosyncrasies, so debugging a justfile is easier and less surprising than debugging a makefile.
|
|
|
|
It works on Linux, MacOS, and Windows.
|
|
|
|
Read more on [GitHub](https://github.com/casey/just).
|