Add usage note to default list recipe (#1296)

This commit is contained in:
JP Bochi 2022-08-01 16:31:50 +02:00 committed by GitHub
parent b6d06583f9
commit 051f4389f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -579,6 +579,8 @@ default:
@just --list
```
Note that you may need to add `--justfile {{justfile()}}` to the line above above. Without it, if you executed `just -f /some/distant/justfile -d .` or `just -f ./non-standard-justfile`, the plain `just --list` inside the recipe would not necessarily use the file you provided. It would try to find a justfile in your current path, maybe even resulting in a `No justfile found` error.
The heading text can be customized with `--list-heading`:
```sh