1
0
mirror of https://github.com/go-task/task.git synced 2025-08-10 22:42:19 +02:00

remove context

This commit is contained in:
Valentin Maerten
2025-08-08 09:53:39 +02:00
parent 1b700edfd9
commit 378a0c0583

View File

@@ -97,7 +97,7 @@ tasks:
Task provides special variables that are always available in templates. These override any user-defined variables with the same name. Task provides special variables that are always available in templates. These override any user-defined variables with the same name.
### CLI Context ### CLI
#### `CLI_ARGS` #### `CLI_ARGS`
- **Type**: `string` - **Type**: `string`
@@ -153,7 +153,7 @@ tasks:
- **Type**: `bool` - **Type**: `bool`
- **Description**: Whether `--offline` flag was set - **Description**: Whether `--offline` flag was set
### Task Context ### Task
#### `TASK` #### `TASK`
- **Type**: `string` - **Type**: `string`
@@ -216,7 +216,7 @@ tasks:
- echo "Working: {{.USER_WORKING_DIR}}" - echo "Working: {{.USER_WORKING_DIR}}"
``` ```
### Status Context ### Status
#### `CHECKSUM` #### `CHECKSUM`
- **Type**: `string` - **Type**: `string`
@@ -238,7 +238,7 @@ tasks:
- echo "{{.CHECKSUM}}" > .last-checksum - echo "{{.CHECKSUM}}" > .last-checksum
``` ```
### Loop Context ### Loop
#### `ITEM` #### `ITEM`
- **Type**: `any` - **Type**: `any`
@@ -264,7 +264,7 @@ tasks:
cmd: echo "Hello {{.NAME}}" cmd: echo "Hello {{.NAME}}"
``` ```
### Defer Context ### Defer
#### `EXIT_CODE` #### `EXIT_CODE`
- **Type**: `int` - **Type**: `int`
@@ -282,7 +282,7 @@ tasks:
{{end}} {{end}}
``` ```
### System Context ### System
#### `TASK_VERSION` #### `TASK_VERSION`
- **Type**: `string` - **Type**: `string`