databricks-cli/libs
shreyas-goenka 6c644e159c
Add map and pair helper functions for bundle templates (#665)
## 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
2023-08-15 16:07:22 +00:00
..
auth Upgraded Go version to 1.21 (#664) 2023-08-15 13:50:40 +00:00
cmdio Use custom prompter for bundle template inputs (#663) 2023-08-15 14:50:20 +00:00
databrickscfg Always resolve .databrickscfg file (#659) 2023-08-14 12:45:08 +00:00
errs Added ability for deferred mutator execution (#380) 2023-05-16 18:01:50 +02:00
filer Upgraded Go version to 1.21 (#664) 2023-08-15 13:50:40 +00:00
fileset Don't sync symlink folders (#205) 2023-02-15 17:02:54 +01:00
flags Upgraded Go version to 1.21 (#664) 2023-08-15 13:50:40 +00:00
git Consolidate functions in libs/git (#652) 2023-08-10 09:36:42 +00:00
jsonschema Return better error messages for invalid JSON schema types in templates (#661) 2023-08-15 14:28:04 +00:00
locker Upgraded Go version to 1.21 (#664) 2023-08-15 13:50:40 +00:00
log Upgraded Go version to 1.21 (#664) 2023-08-15 13:50:40 +00:00
notebook Error out if notebook file does not exist locally (#261) 2023-03-21 18:13:16 +01:00
sync Extend deployment mode support (#577) 2023-07-30 07:19:49 +00:00
template Add map and pair helper functions for bundle templates (#665) 2023-08-15 16:07:22 +00:00
terraform Add bundle destroy command (#300) 2023-04-06 12:54:58 +02:00
testfile Refactor and cover edge cases in sync integration tests (#160) 2023-01-10 13:16:30 +01:00