diff --git a/website/blog/2024-05-09-any-variables.mdx b/website/blog/2024-05-09-any-variables.mdx index 75da52e5..3c5f2607 100644 --- a/website/blog/2024-05-09-any-variables.mdx +++ b/website/blog/2024-05-09-any-variables.mdx @@ -103,7 +103,7 @@ tasks: You can use any of the following list-based functions: `first`, `rest`, `last`, `initial`, `append`, `prepend`, `concat`, `reverse`, `uniq`, `without`, `has`, -`compact`, `slice` and `chunk`. Check out the [slim-sprg lists +`compact`, `slice` and `chunk`. Check out the [slim-sprig lists documentation][slim-sprig-list] for more information. ### Looping over variables using `for` diff --git a/website/docs/reference/cli.mdx b/website/docs/reference/cli.mdx index 5f5e3296..f94f97c5 100644 --- a/website/docs/reference/cli.mdx +++ b/website/docs/reference/cli.mdx @@ -36,7 +36,7 @@ If `--` is given, all remaining arguments will be assigned to a special | `-a` | `--list-all` | `bool` | `false` | Lists tasks with or without a description. | | | `--sort` | `string` | `default` | Changes the order of the tasks when listed.
`default` - Alphanumeric with root tasks first
`alphanumeric` - Alphanumeric
`none` - No sorting (As they appear in the Taskfile) | | | `--json` | `bool` | `false` | See [JSON Output](#json-output) | -| `-o` | `--output` | `string` | Default set in the Taskfile or `intervealed` | Sets output style: [`interleaved`/`group`/`prefixed`]. | +| `-o` | `--output` | `string` | Default set in the Taskfile or `interleaved` | Sets output style: [`interleaved`/`group`/`prefixed`]. | | | `--output-group-begin` | `string` | | Message template to print before a task's grouped output. | | | `--output-group-end` | `string` | | Message template to print after a task's grouped output. | | | `--output-group-error-only` | `bool` | `false` | Swallow command output on zero exit code. | diff --git a/website/docs/reference/environment.mdx b/website/docs/reference/environment.mdx index 095b6108..c30ea5cd 100644 --- a/website/docs/reference/environment.mdx +++ b/website/docs/reference/environment.mdx @@ -18,12 +18,12 @@ page lists all the environment variables that Task supports. | ENV | Default | Description | | -------------------- | ------- | ----------------------- | | `TASK_COLOR_RESET` | `0` | Color used for white. | -| `TASK_COLOR_BLUE` | `34` | Color used for blue. | -| `TASK_COLOR_GREEN` | `32` | Color used for green. | -| `TASK_COLOR_CYAN` | `36` | Color used for cyan. | -| `TASK_COLOR_YELLOW` | `33` | Color used for yellow. | -| `TASK_COLOR_MAGENTA` | `35` | Color used for magenta. | | `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. | 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. @@ -35,3 +35,7 @@ background colors where `R`, `G` and `B` should be replaced with values between For convenience, we allow foreground colors to be specified using shorthand, comma-separated syntax: `R,G,B`. For example, `255,0,0` is equivalent to `38;2;255:0:0`. + +{/* prettier-ignore-start */} +[ansi]: https://en.wikipedia.org/wiki/ANSI_escape_code +{/* prettier-ignore-end */} diff --git a/website/docs/reference/schema.mdx b/website/docs/reference/schema.mdx index 75d4b0a7..a7f861d6 100644 --- a/website/docs/reference/schema.mdx +++ b/website/docs/reference/schema.mdx @@ -224,7 +224,3 @@ tasks: | Attribute | Type | Default | Description | | --------- | ---------- | ------- | -------------------------------------------------------------------------------------------------- | | `vars` | `[]string` | | List of variable or environment variable names that must be set if this task is to execute and run | - -{/* prettier-ignore-start */} -[ansi]: https://en.wikipedia.org/wiki/ANSI_escape_code -{/* prettier-ignore-end */} diff --git a/website/docs/reference/templating.mdx b/website/docs/reference/templating.mdx index 628b273b..9f517108 100644 --- a/website/docs/reference/templating.mdx +++ b/website/docs/reference/templating.mdx @@ -123,7 +123,7 @@ functions available for use in Task. :::note -Functions marked with an astrix (\*) also have `must` variants that will panic +Functions marked with an asterisk (\*) also have `must` variants that will panic rather than erroring. ::: @@ -248,7 +248,7 @@ description here for completeness. For detailed usage, please refer to the | `coalesce` | Takes a list of values and returns the first non-empty one. | | `all` | Returns true if all values are non-empty. | | `any` | Returns true if any value is non-empty. | -| `ternary` | | +| `ternary` | The ternary function takes two values, and a test value. If the test value is true, the first value will be returned. If the test value is empty, the second value will be returned. | #### [Encoding Functions][encoding-functions]