mirror of https://github.com/databricks/cli.git
6c644e159c
## Changes Go text templates allows only specifying one input argument for invocations of associated templates (ie `{{template ...}}`). This PR introduces the map and pair functions which allow template authors to work around this limitation by passing multiple arguments as key value pairs in a map. This PR is based on feedback from the mlops stacks migration where otherwise a bunch of duplicate code is required for computed values and fixtures. ## Tests Unit test |
||
---|---|---|
.. | ||
config-assign-from-file | ||
config-assign-from-file-invalid-int | ||
config-assign-from-file-unknown-property | ||
copy-file-walk/template | ||
executable-bit-read/template | ||
fail/template | ||
file-tree-rendering/template/{{.dir_name}} | ||
map-pair | ||
print-without-processing/template | ||
regexp-compile/template | ||
skip/template | ||
skip-all-files-in-cwd/template | ||
skip-dir-eagerly/template | ||
skip-is-relative/template | ||
template-in-path | ||
urlparse-function/template | ||
walk/template |