Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions website/src/docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,10 +406,11 @@ option takes the list of tasks to be excluded from this include.

```yaml [Taskfile.yml]
version: '3'
includes:
included:
taskfile: ./Included.yml
excludes: [foo]

includes:
included:
taskfile: ./Included.yml
excludes: [foo]
```

```yaml [Included.yml]
Expand Down Expand Up @@ -926,7 +927,7 @@ tasks:
- ./vendor/autoload.php
# But also run the task if the last build was not a production build.
status:
- grep -q '"dev": false' ./vendor/composer/installed.json
- grep -q '"dev"{{:}} false' ./vendor/composer/installed.json
```

### Using programmatic checks to cancel the execution of a task and its dependencies
Expand Down
17 changes: 12 additions & 5 deletions website/src/docs/reference/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ vars:

# Variable references
BUILD_VERSION:
ref: VERSION
ref: .VERSION

# Map variables
CONFIG:
Expand Down Expand Up @@ -360,7 +360,7 @@ vars:
vars:
BASE_VERSION: 1.0.0
FULL_VERSION:
ref: BASE_VERSION
ref: .BASE_VERSION
```

### Map Variables (`map`)
Expand Down Expand Up @@ -513,12 +513,19 @@ tasks:

```yaml
tasks:
# Single prompt
deploy:
prompt: "Deploy to production?"
# or multiple prompts
cmds:
- ./deploy.sh

# Multiple prompts
deploy-multi:
prompt:
- "Are you sure?"
- "This will affect live users!"
cmds:
- ./deploy.sh
```

#### `aliases`
Expand Down Expand Up @@ -592,7 +599,7 @@ tasks:
# Simple precondition (shorthand)
build:
preconditions:
- test -f ./src
- test -d ./src
cmds:
- go build ./...

Expand Down Expand Up @@ -773,7 +780,7 @@ tasks:
matrix:
OS: [linux, windows, darwin]
ARCH: [amd64, arm64]
cmd: echo "Testing {{.OS}}/{{.ARCH}}"
cmd: echo "Testing {{.ITEM.OS}}/{{.ITEM.ARCH}}"
```

#### Loop in Dependencies
Expand Down
Loading