From 0d209ef05dcf9c800373d731d9d0697d61ff13e7 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Wed, 20 Dec 2023 23:11:50 -0300 Subject: [PATCH] docs: minor updates to the "any variables" experiment page --- .../{any_variables.md => any_variables.mdx} | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename docs/docs/experiments/{any_variables.md => any_variables.mdx} (90%) diff --git a/docs/docs/experiments/any_variables.md b/docs/docs/experiments/any_variables.mdx similarity index 90% rename from docs/docs/experiments/any_variables.md rename to docs/docs/experiments/any_variables.mdx index 1be5f1c7..890f3efa 100644 --- a/docs/docs/experiments/any_variables.md +++ b/docs/docs/experiments/any_variables.mdx @@ -32,7 +32,7 @@ tasks: vars: BOOL: false cmds: - - '{{ if .BOOL }}echo foo{{ end}}' + - '{{if .BOOL}}echo foo{{end}}' ``` Arithmetic: @@ -46,7 +46,7 @@ tasks: INT: 10 FLOAT: 3.14159 cmds: - - 'echo {{ add .INT .FLOAT }}' + - 'echo {{add .INT .FLOAT}}' ``` Loops: @@ -59,7 +59,7 @@ tasks: vars: ARRAY: [1, 2, 3] cmds: - - 'echo {{ range .ARRAY }}{{ . }}{{ end }}' + - 'echo {{range .ARRAY}}{{.}}{{end}}' ``` etc. @@ -81,7 +81,7 @@ task: CALCULATED_VAR: sh: 'echo hello' cmds: - - 'echo {{ .CALCULATED_VAR }}' + - 'echo {{.CALCULATED_VAR}}' ``` With this experiment enabled, you will need to remove the `sh` subkey and define @@ -97,7 +97,7 @@ task: vars: CALCULATED_VAR: '$echo hello' cmds: - - 'echo {{ .CALCULATED_VAR }}' + - 'echo {{.CALCULATED_VAR}}' ``` If your current Taskfile contains a string variable that begins with a `$`, you