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 |
||
---|---|---|
.. | ||
testdata | ||
config.go | ||
config_test.go | ||
file.go | ||
file_test.go | ||
helpers.go | ||
helpers_test.go | ||
materialize.go | ||
renderer.go | ||
renderer_test.go | ||
utils.go | ||
utils_test.go | ||
validators.go | ||
validators_test.go |