diff --git a/CHANGELOG.md b/CHANGELOG.md index b38ced9d..e5f1049e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,9 @@ [Any Variables experiment](https://taskfile.dev/experiments/any_variables) (#1415, #1421 by @pd93). - Updated Docusaurus to v3 (#1432 by @pd93). -- Added `aliases` to `--json` flag output (#1430, #1431 by @pd93) +- Added `aliases` to `--json` flag output (#1430, #1431 by @pd93). +- Added new `CLI_FORCE` special variable containing whether the `--force` or + `--force-all` flags were set (#1412, #1434 by @pd93). ## v3.32.0 - 2023-11-29 diff --git a/docs/docs/api_reference.mdx b/docs/docs/api_reference.mdx index b79b615d..aebc94c2 100644 --- a/docs/docs/api_reference.mdx +++ b/docs/docs/api_reference.mdx @@ -126,6 +126,7 @@ There are some special variables that is available on the templating system: | Var | Description | | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- | | `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. | | `TASK` | The name of the current task. | | `ROOT_DIR` | The absolute path of the root Taskfile. | | `TASKFILE_DIR` | The absolute path of the included Taskfile. |