mirror of
https://github.com/go-task/task.git
synced 2025-04-18 12:04:04 +03:00
docs: things aren't always simple
This commit is contained in:
parent
b11da93c78
commit
789a7ea950
@ -167,7 +167,7 @@ tasks:
|
||||
- Push the commit/tag to the repository
|
||||
- Create a GitHub release
|
||||
|
||||
To use the task, simply run "task release:<version>" where "<version>" is is one of:
|
||||
To use the task, run "task release:<version>" where "<version>" is is one of:
|
||||
|
||||
- "major" - Bumps the major number
|
||||
- "minor" - Bumps the minor number
|
||||
|
@ -62,8 +62,8 @@ the commands.
|
||||
|
||||
## Calling a task
|
||||
|
||||
To call the task, you simply invoke `task` followed by the name of the task you
|
||||
want to run. In this case, the name of the task is `default`, so you should run:
|
||||
To call the task, invoke `task` followed by the name of the task you want to
|
||||
run. In this case, the name of the task is `default`, so you should run:
|
||||
|
||||
```shell
|
||||
task default
|
||||
|
@ -1301,8 +1301,8 @@ tasks:
|
||||
```
|
||||
|
||||
All references use the same templating syntax as regular templates, so in
|
||||
addition to simply calling `.FOO`, you can also pass subkeys (`.FOO.BAR`) or
|
||||
indexes (`index .FOO 0`) and use functions (`len .FOO`) as described in the
|
||||
addition to calling `.FOO`, you can also pass subkeys (`.FOO.BAR`) or indexes
|
||||
(`index .FOO 0`) and use functions (`len .FOO`) as described in the
|
||||
[templating-reference][templating-reference]:
|
||||
|
||||
```yaml
|
||||
@ -1511,9 +1511,9 @@ tasks:
|
||||
|
||||
### Looping over variables
|
||||
|
||||
To loop over the contents of a variable, you simply need to specify the variable
|
||||
you want to loop over. By default, string variables will be split on any
|
||||
whitespace characters.
|
||||
To loop over the contents of a variable, use the `var` key followed by the name
|
||||
of the variable you want to loop over. By default, string variables will be
|
||||
split on any whitespace characters.
|
||||
|
||||
```yaml
|
||||
version: '3'
|
||||
|
Loading…
x
Reference in New Issue
Block a user