databricks-cli/libs/template
shreyas-goenka 81ee031a04
Add bundle init command and support for prompting user for input values (#631)
## Changes
This PR adds two features:
1. The bundle init command 
2. Support for prompting for input values

In order to do this, this PR also introduces a new `config` struct which
handles reading config files, prompting users and all validation steps
before we materialize the template

With this PR users can start authoring custom templates, based on go
text templates, for their projects / orgs.

## Tests
Unit tests, both existing and new
2023-08-07 13:14:25 +00:00
..
testdata Add bundle init command and support for prompting user for input values (#631) 2023-08-07 13:14:25 +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 Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
renderer_test.go Add unit test for file name execution during rendering (#640) 2023-08-07 12:44:01 +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