From 40d77156df28e87c7cded7d99f312d98257439fc Mon Sep 17 00:00:00 2001 From: Pete Davison Date: Mon, 3 Jun 2024 09:40:33 +0000 Subject: [PATCH] chore: changelog for #1572 --- CHANGELOG.md | 2 ++ website/docs/reference/environment.mdx | 24 +++++++++++++++--------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6edc70fe..bdf13649 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ - Added `TASK_EXE` special variable (#1616, #1624 by @pd93 and @andreynering). - Some YAML parsing errors will now show in a more user friendly way (#1619 by @pd93). +- Prefixed outputs will now be colorized by default (#1572 by + @AlexanderArvidsson) - [References](https://taskfile.dev/usage/#referencing-other-variables) are now generally available (no experiments required) (#1654 by @pd93). - Templating functions can now be used in references (#1645, #1654 by @pd93). diff --git a/website/docs/reference/environment.mdx b/website/docs/reference/environment.mdx index c30ea5cd..55d46ac8 100644 --- a/website/docs/reference/environment.mdx +++ b/website/docs/reference/environment.mdx @@ -15,15 +15,21 @@ page lists all the environment variables that Task supports. ## Custom Colors -| ENV | Default | Description | -| -------------------- | ------- | ----------------------- | -| `TASK_COLOR_RESET` | `0` | Color used for white. | -| `TASK_COLOR_RED` | `31` | Color used for red. | -| `TASK_COLOR_GREEN` | `32` | Color used for green. | -| `TASK_COLOR_YELLOW` | `33` | Color used for yellow. | -| `TASK_COLOR_BLUE` | `34` | Color used for blue. | -| `TASK_COLOR_MAGENTA` | `35` | Color used for magenta. | -| `TASK_COLOR_CYAN` | `36` | Color used for cyan. | +| ENV | Default | Description | +| --------------------------- | ------- | ----------------------- | +| `TASK_COLOR_RESET` | `0` | Color used for white. | +| `TASK_COLOR_RED` | `31` | Color used for red. | +| `TASK_COLOR_GREEN` | `32` | Color used for green. | +| `TASK_COLOR_YELLOW` | `33` | Color used for yellow. | +| `TASK_COLOR_BLUE` | `34` | Color used for blue. | +| `TASK_COLOR_MAGENTA` | `35` | Color used for magenta. | +| `TASK_COLOR_CYAN` | `36` | Color used for cyan. | +| `TASK_COLOR_BRIGHT_RED` | `91` | Color used for red. | +| `TASK_COLOR_BRIGHT_GREEN` | `92` | Color used for green. | +| `TASK_COLOR_BRIGHT_YELLOW` | `93` | Color used for yellow. | +| `TASK_COLOR_BRIGHT_BLUE` | `94` | Color used for blue. | +| `TASK_COLOR_BRIGHT_MAGENTA` | `95` | Color used for magenta. | +| `TASK_COLOR_BRIGHT_CYAN` | `96` | Color used for cyan. | All color variables are [ANSI color codes][ansi]. You can specify multiple codes separated by a semicolon. For example: `31;1` will make the text bold and red.