mirror of https://github.com/databricks/cli.git
75b09ff230
## Changes Prior to this change, the output directory was part of the `renderer` type and passed down to every `file` it produced. Every file knew its absolute destination path. This is incompatible with the use of a filer, where all operations are automatically anchored to some base path. To make this compatible, this change updates: * the `file` type to only know its own path relative to the instantiation root, * the `renderer` type to no longer require or pass along the output directory, * the `persistToDisk` function to take a context and filer argument, * the `filer.WriteMode` to represent permission bits ## Tests * Existing tests pass. * Manually confirmed template initialization works as expected. |
||
---|---|---|
.. | ||
completer | ||
dbfs_client.go | ||
fake_filer.go | ||
fake_filer_test.go | ||
filer.go | ||
filer_test.go | ||
files_client.go | ||
fs.go | ||
fs_test.go | ||
local_client.go | ||
local_root_path.go | ||
local_root_path_test.go | ||
slice.go | ||
slice_test.go | ||
workspace_files_cache.go | ||
workspace_files_cache_test.go | ||
workspace_files_client.go | ||
workspace_files_client_test.go | ||
workspace_files_extensions_client.go | ||
workspace_files_extensions_client_test.go | ||
workspace_root_path.go | ||
workspace_root_path_test.go |