From 20c1ffe09856dedda4ccc4257d800cda74ed942b Mon Sep 17 00:00:00 2001 From: Pete Davison Date: Sun, 27 Apr 2025 22:26:59 +0000 Subject: [PATCH] docs: update variables example so that it doesn't error --- website/docs/usage.mdx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/website/docs/usage.mdx b/website/docs/usage.mdx index 1942d947..eda391a0 100644 --- a/website/docs/usage.mdx +++ b/website/docs/usage.mdx @@ -1116,14 +1116,14 @@ tasks: MAP: map: {A: 1, B: 2, C: 3} cmds: - - 'echo {{.STRING}}' # Hello, World! - - 'echo {{.BOOL}}' # true - - 'echo {{.INT}}' # 42 - - 'echo {{.FLOAT}}' # 3.14 - - 'echo {{.ARRAY}}' # [1 2 3] - - 'echo {{.ARRAY.0}}' # 1 - - 'echo {{.MAP}}' # map[A:1 B:2 C:3] - - 'echo {{.MAP.A}}' # 1 + - 'echo {{.STRING}}' # Hello, World! + - 'echo {{.BOOL}}' # true + - 'echo {{.INT}}' # 42 + - 'echo {{.FLOAT}}' # 3.14 + - 'echo {{.ARRAY}}' # [1 2 3] + - 'echo {{index .ARRAY 0}}' # 1 + - 'echo {{.MAP}}' # map[A:1 B:2 C:3] + - 'echo {{.MAP.A}}' # 1 ``` Variables can be set in many places in a Taskfile. When executing