databricks-cli/libs/template
shreyas-goenka a4ba0bbe9f
Add sub-extension to resource files in built-in templates (#1777)
## Changes
We want to encourage a pattern of only specifying a single resource in a
YAML file when an `.<resource-type>.yml` (like `.job.yml`) is used. This
convention could allow us to bijectively map a resource YAML file to
it's corresponding resource in the Databricks workspace.

This PR simply makes the built-in templates compliant to this format.

## Tests
Existing tests.
2024-09-25 12:58:14 +00:00
..
templates Add sub-extension to resource files in built-in templates (#1777) 2024-09-25 12:58:14 +00:00
testdata Fix ability to import the CLI repository as module (#1671) 2024-08-12 14:20:04 +00:00
config.go Allow unknown properties in the config file for template initialization (#1315) 2024-03-26 13:02:09 +00:00
config_test.go Make bundle JSON schema modular with `$defs` (#1700) 2024-09-10 13:55:18 +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 Use the friendly name of service principals when shortening their name (#1770) 2024-09-16 18:35:07 +00:00
helpers_test.go Add UUID function to bundle template functions (#1612) 2024-07-19 11:38:20 +00:00
materialize.go Make dbt-sql and default-sql templates public (#1463) 2024-06-04 08:57:13 +00:00
materialize_test.go Improve error message when path is not a bundle template (#985) 2023-11-22 12:25:16 +00:00
renderer.go Update error checks that use the `os` package to use `errors.Is` (#1461) 2024-06-03 12:39:36 +00:00
renderer_test.go Fix ability to import the CLI repository as module (#1671) 2024-08-12 14:20:04 +00:00