mirror of https://github.com/databricks/cli.git
a5b86093ec
## Changes This pull request extends the templating support in preparation of a new, default template (WIP, https://github.com/databricks/cli/pull/686): * builtin templates that can be initialized using e.g. `databricks bundle init default-python` * builtin templates are embedded into the executable using go's `embed` functionality, making sure they're co-versioned with the CLI * new helpers to get the workspace name, current user name, etc. help craft a complete template * (not enabled yet) when the user types `databricks bundle init` they can interactively select the `default-python` template And makes two tangentially related changes: * IsServicePrincipal now uses the "users" API rather than the "principals" API, since the latter is too slow for our purposes. * mode: prod no longer requires the 'target.prod.git' setting. It's hard to set that from a template. (Pieter is planning an overhaul of warnings support; this would be one of the first warnings we show.) The actual `default-python` template is maintained in a separate PR: https://github.com/databricks/cli/pull/686 ## Tests Unit tests, manual testing |
||
---|---|---|
.. | ||
default_target.go | ||
default_target_test.go | ||
default_workspace_paths.go | ||
default_workspace_paths_test.go | ||
default_workspace_root.go | ||
default_workspace_root_test.go | ||
expand_workspace_root.go | ||
expand_workspace_root_test.go | ||
load_git_details.go | ||
mutator.go | ||
override_compute.go | ||
override_compute_test.go | ||
populate_current_user.go | ||
populate_current_user_test.go | ||
process_include.go | ||
process_include_test.go | ||
process_root_includes.go | ||
process_root_includes_test.go | ||
process_target_mode.go | ||
process_target_mode_test.go | ||
run_as.go | ||
select_default_target.go | ||
select_default_target_test.go | ||
select_target.go | ||
select_target_test.go | ||
set_variables.go | ||
set_variables_test.go | ||
translate_paths.go | ||
translate_paths_test.go | ||
validate_git_details.go | ||
validate_git_details_test.go |