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

Add verbose/silent variables (#1669)

This commit is contained in:
Vincent Smith
2024-06-28 12:13:52 -04:00
committed by GitHub
parent da6f5c66a0
commit 413dcd28a8
2 changed files with 4 additions and 0 deletions

View File

@@ -127,6 +127,8 @@ There are some special variables that is available on the templating system:
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `CLI_ARGS` | Contain all extra arguments passed after `--` when calling Task through the CLI. |
| `CLI_FORCE` | A boolean containing whether the `--force` or `--force-all` flags were set. |
| `CLI_SILENT` | A boolean containing whether the `--silent` flag was set. |
| `CLI_VERBOSE` | A boolean containing whether the `--verbose` flag was set. |
| `TASK` | The name of the current task. |
| `ROOT_TASKFILE` | The absolute path of the root Taskfile. |
| `ROOT_DIR` | The absolute path of the root Taskfile directory. |