Update README to reflect new attribute syntax (#1538)

This commit is contained in:
Greg Shuflin 2023-01-27 00:04:44 -08:00 committed by GitHub
parent 687831816d
commit 941a40e051
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1232,6 +1232,24 @@ Recipes may be annotated with attributes that change their behavior.
| `[macos]` | Enable recipe on MacOS. | | `[macos]` | Enable recipe on MacOS. |
| `[unix]` | Enable recipe on Unixes. | | `[unix]` | Enable recipe on Unixes. |
| `[windows]` | Enable recipe on Windows. | | `[windows]` | Enable recipe on Windows. |
| `[private]` | See "Private Recipes". |
A recipe can have multiple attributes, either on multiple lines:
```just
[no-cd]
[private]
foo:
echo "foo"
```
Or separated by commas on a single line:
```just
[no-cd, private]
foo:
echo "foo"
```
#### Enabling and Disabling Recipes #### Enabling and Disabling Recipes