databricks-cli/libs/filer
shreyas-goenka af3914db61
Move `WorkspaceClient` to `libs/command` (#2444)
## 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
2025-03-07 16:47:19 +00:00
..
completer Move `WorkspaceClient` to `libs/command` (#2444) 2025-03-07 16:47:19 +00:00
dbfs_client.go Upgraded Go version to 1.21 (#664) 2023-08-15 13:50:40 +00:00
fake_filer.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
fake_filer_test.go Consolidate test helpers for `io/fs` (#1906) 2024-11-15 15:37:21 +00:00
filer.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
filer_test.go Use `filer.Filer` to write template instantiation (#1911) 2024-11-20 11:11:31 +01:00
files_client.go Upgrade Go SDK to 0.59.0 (#2425) 2025-03-05 10:20:51 +00:00
fs.go Add fs.FS adapter for the filer interface (#422) 2023-06-02 12:49:59 +00:00
fs_test.go Enable intrange linter and apply autofix (#2069) 2025-01-03 09:25:07 +00:00
local_client.go Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
local_root_path.go Remove unnecessary `filepath.FromSlash` calls (#1458) 2024-05-29 15:30:26 +00:00
local_root_path_test.go Make local files default for fs commands (#506) 2023-06-23 16:07:09 +02:00
slice.go Upgraded Go version to 1.21 (#664) 2023-08-15 13:50:40 +00:00
slice_test.go Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
workspace_files_cache.go Implement readahead cache for Workspace API calls (#1582) 2024-07-18 09:45:10 +00:00
workspace_files_cache_test.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
workspace_files_client.go Bump github.com/databricks/databricks-sdk-go from 0.55.0 to 0.56.1 (#2238) 2025-01-27 13:11:07 +00:00
workspace_files_client_test.go Move bespoke status call to main workspace files filer (#1570) 2024-07-05 11:32:29 +00:00
workspace_files_extensions_client.go Refactor `bundle init` (#2074) 2025-01-20 12:09:28 +00:00
workspace_files_extensions_client_test.go Bump github.com/databricks/databricks-sdk-go from 0.55.0 to 0.56.1 (#2238) 2025-01-27 13:11:07 +00:00
workspace_root_path.go Make local files default for fs commands (#506) 2023-06-23 16:07:09 +02:00
workspace_root_path_test.go Make local files default for fs commands (#506) 2023-06-23 16:07:09 +02:00