databricks-cli/libs/template
shreyas-goenka bbbeabf98c
Add support for ordering of input prompts (#662)
## Changes

JSON schema properties are a map and thus unordered.

This PR introduces a JSON schema extension field called `order` to allow
template authors to define the order in which template variables should
be resolved/prompted.

## Tests

Unit tests.

---------

Co-authored-by: Pieter Noordhuis <pieter.noordhuis@databricks.com>
2023-09-05 11:08:25 +00:00
..
templates/default-python Add a foundation for built-in templates (#685) 2023-08-25 09:03:42 +00:00
testdata Add a foundation for built-in templates (#685) 2023-08-25 09:03:42 +00:00
config.go Add support for ordering of input prompts (#662) 2023-09-05 11:08:25 +00:00
config_test.go Return better error messages for invalid JSON schema types in templates (#661) 2023-08-15 14:28:04 +00:00
file.go Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
file_test.go Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
helpers.go Cleanup after "Add a foundation for built-in templates" (#707) 2023-08-30 14:01:08 +00:00
helpers_test.go Add a foundation for built-in templates (#685) 2023-08-25 09:03:42 +00:00
materialize.go Cleanup after "Add a foundation for built-in templates" (#707) 2023-08-30 14:01:08 +00:00
renderer.go Add a foundation for built-in templates (#685) 2023-08-25 09:03:42 +00:00
renderer_test.go Add a foundation for built-in templates (#685) 2023-08-25 09:03:42 +00:00
utils.go Return better error messages for invalid JSON schema types in templates (#661) 2023-08-15 14:28:04 +00:00
utils_test.go Return better error messages for invalid JSON schema types in templates (#661) 2023-08-15 14:28:04 +00:00
validators.go Upgraded Go version to 1.21 (#664) 2023-08-15 13:50:40 +00:00
validators_test.go Add bundle init command and support for prompting user for input values (#631) 2023-08-07 13:14:25 +00:00