File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
website/src/docs/reference Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ outline: deep
1111Task's templating engine uses Go's
1212[ text/template] ( https://pkg.go.dev/text/template ) package to interpolate values.
1313This reference covers the main features and all available functions for creating
14- dynamic Taskfiles. Most of the provided functions come from the
14+ dynamic Taskfiles. Most of the provided functions come from the
1515[ slim-sprig] ( https://sprig.taskfile.dev/ ) library.
1616
1717## Basic Usage
@@ -628,9 +628,11 @@ tasks:
628628 port: 5432
629629 ssl: true
630630 cmds:
631- - echo "Database {{.CONFIG | get "database"}}"
631+ - echo "Database {{get .CONFIG "database"}}"
632+ - echo "Database {{"database" | get .CONFIG}}"
632633 - echo "Keys {{.CONFIG | keys}}"
633- - echo "Has SSL {{.CONFIG | hasKey "ssl"}}"
634+ - echo "Keys {{keys .CONFIG }}"
635+ - echo "Has SSL {{hasKey .CONFIG "ssl"}}"
634636 - echo "{{dict "env" "prod" "debug" false}}"
635637` ` `
636638
You can’t perform that action at this time.
0 commit comments