mirror of https://github.com/databricks/cli.git
## Changes Move the WorkspaceClient reader and setter from the root package to `libs/command`. ## Why This allows us to read the workspace client set in the context in all CLI packages. This was not possible before because using `root.WorkspaceClient` would often result in an import cycle. This would also allow us to standardise reads of the workspace client to be from the context in bundle commands. Today those are read from the bundle object tree instead. This is a natural followup to https://github.com/databricks/cli/pull/2440. ## Tests Existing tests and one new unit test. NO_CHANGELOG=true |
||
---|---|---|
.. | ||
config_used.go | ||
config_used_test.go | ||
context.go | ||
workspace_client.go | ||
workspace_client_test.go |