databricks-cli/libs/template
Lennart Kats (databricks) 8c2cc07f7b
databricks bundle init template v1 (#686)
## Changes

This adds a built-in "default-python" template to the CLI. This is based
on the new default-template support of
https://github.com/databricks/cli/pull/685.

The goal here is to offer an experience where customers can simply type
`databricks bundle init` to get a default template:

```
$ databricks bundle init
Template to use [default-python]: default-python
Unique name for this project [my_project]: my_project
 Successfully initialized template
```

The present template:
- [x] Works well with VS Code
- [x] Works well with the workspace
- [x] Works well with DB Connect
- [x] Uses minimal stubs rather than boiler-plate-heavy examples

I'll have a followup with tests + DLT support.

---------

Co-authored-by: Andrew Nester <andrew.nester@databricks.com>
Co-authored-by: PaulCornellDB <paul.cornell@databricks.com>
Co-authored-by: Pieter Noordhuis <pieter.noordhuis@databricks.com>
2023-09-05 11:58:34 +00:00
..
templates/default-python databricks bundle init template v1 (#686) 2023-09-05 11:58:34 +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 Fix IsServicePrincipal() only working for workspace admins (#732) 2023-09-05 11:20:55 +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