databricks-cli/libs/template
shreyas-goenka 6ea70c82a9
Execute paths without the .tmpl extension as templates (#654)
## Changes
The `.tmpl` extension is only meant as a qualifier for whether the file
content is executed as a template. All file paths in the `template`
directory should be treated as valid go text templates.

Before only paths with the `.tmpl` extensions would be resolved as
templates, after this change, all file paths are interpreted as
templates.

## Tests
Unit test. The newly added unit tests also asserts that the file path is
correct, even when the `.tmpl` extension is missing.
2023-08-11 13:48:32 +00:00
..
testdata Execute paths without the .tmpl extension as templates (#654) 2023-08-11 13:48:32 +00:00
config.go Add bundle init command and support for prompting user for input values (#631) 2023-08-07 13:14:25 +00:00
config_test.go Add bundle init command and support for prompting user for input values (#631) 2023-08-07 13:14:25 +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 Add url parse helper function for templates (#600) 2023-07-27 09:51:31 +00:00
helpers_test.go Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
materialize.go Add bundle init command and support for prompting user for input values (#631) 2023-08-07 13:14:25 +00:00
renderer.go Execute paths without the .tmpl extension as templates (#654) 2023-08-11 13:48:32 +00:00
renderer_test.go Execute paths without the .tmpl extension as templates (#654) 2023-08-11 13:48:32 +00:00
utils.go Add bundle init command and support for prompting user for input values (#631) 2023-08-07 13:14:25 +00:00
utils_test.go Add bundle init command and support for prompting user for input values (#631) 2023-08-07 13:14:25 +00:00
validators.go Add bundle init command and support for prompting user for input values (#631) 2023-08-07 13:14:25 +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