databricks-cli/cmd
Kai Zhu 2ec6abf74e
Fix `databricks configure` to use DATABRICKS_CONFIG_FILE environment variable if exists as config file (#1325)
## Changes
added `ConfigFile: cfg.ConfigFile` for `databrickscfg.SaveToProfile` in
`cmd/configure/configure.go` to save the file in a specified path when
the value is not empty

## Tests
`TestConfigFileFromEnvNoInteractive` in
`cmd/configure/configure_test.go` sets a different config file path by
`DATABRICKS_CONFIG_FILE`, after execution, the overwrite config file is
generated, and the default path has no file.
2024-06-24 10:56:49 +00:00
..
account Update OpenAPI spec (#1466) 2024-06-03 14:14:48 +00:00
api Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
auth Update error checks that use the `os` package to use `errors.Is` (#1461) 2024-06-03 12:39:36 +00:00
bundle Serialize dynamic value for `bundle validate` output (#1499) 2024-06-18 15:04:20 +00:00
configure Fix `databricks configure` to use DATABRICKS_CONFIG_FILE environment variable if exists as config file (#1325) 2024-06-24 10:56:49 +00:00
fs Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
labs Improve token refresh flow (#1434) 2024-05-16 10:22:09 +00:00
root Improve token refresh flow (#1434) 2024-05-16 10:22:09 +00:00
sync Avoid multiple file tree traversals on bundle deploy (#1493) 2024-06-17 09:48:52 +00:00
version Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
workspace Update OpenAPI spec (#1466) 2024-06-03 14:14:48 +00:00
cmd.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00