diff --git a/CHANGELOG.md b/CHANGELOG.md index 655f5369..973cf78c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ - Updated minimum required Go version to 1.22 (#1758 by @pd93). - Expose a new `EXIT_CODE` special variable on `defer:` when a command finishes with a non-zero exit code (#1484, #1762 by @dorimon-1 and @andreynering). +- Expose a new `ALIAS` special variable, which will contain the alias used to + call the current task. Falls back to the task name. (#1764 by @DanStory). ## v3.38.0 - 2024-06-30 diff --git a/website/docs/reference/templating.mdx b/website/docs/reference/templating.mdx index d82496a5..33df58e8 100644 --- a/website/docs/reference/templating.mdx +++ b/website/docs/reference/templating.mdx @@ -107,7 +107,7 @@ special variable will be overridden. | `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. | -| `ALIAS` | The alias used for the current task, otherwise matches `TASK` | +| `ALIAS` | The alias used for the current task, otherwise matches `TASK`. | | `TASK_EXE` | The Task executable name or path. | | `ROOT_TASKFILE` | The absolute path of the root Taskfile. | | `ROOT_DIR` | The absolute path of the root Taskfile directory. |