mirror of
https://github.com/casey/just.git
synced 2025-07-07 09:35:01 +00:00
Fix attribute grammar and update documentation (#2790)
Some checks are pending
Some checks are pending
This commit is contained in:
parent
152b910922
commit
1b54dd8e39
2 changed files with 11 additions and 2 deletions
|
@ -124,9 +124,11 @@ sequence : expression ',' sequence
|
|||
|
||||
recipe : attributes* '@'? NAME parameter* variadic? ':' dependencies eol body?
|
||||
|
||||
attributes : '[' attribute* ']' eol
|
||||
attributes : '[' attribute (',' attribute)* ']' eol
|
||||
|
||||
attribute : NAME ( '(' string ')' )?
|
||||
attribute : NAME
|
||||
| NAME ':' string
|
||||
| NAME '(' string (',' string)* ')'
|
||||
|
||||
parameter : '$'? NAME
|
||||
| '$'? NAME '=' value
|
||||
|
|
|
@ -2108,6 +2108,13 @@ foo:
|
|||
echo "foo"
|
||||
```
|
||||
|
||||
Attributes with a single argument may be written with a colon:
|
||||
|
||||
```just
|
||||
[group: 'bar']
|
||||
foo:
|
||||
```
|
||||
|
||||
#### Enabling and Disabling Recipes<sup>1.8.0</sup>
|
||||
|
||||
The `[linux]`, `[macos]`, `[unix]`, and `[windows]` attributes are
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue