databricks-cli/cmd/labs
Pieter Noordhuis b21e3c81cd
Make bundle loaders return diagnostics (#1319)
## Changes

The function signature of Cobra's `PreRunE` function has an `error`
return value. We'd like to start returning `diag.Diagnostics` after
loading a bundle, so this is incompatible. This change modifies all
usage of `PreRunE` to load a bundle to inline function calls in the
command's `RunE` function.

## Tests

* Unit tests pass.
* Integration tests pass.
2024-03-28 10:32:34 +00:00
..
github Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
localcache Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
project Make bundle loaders return diagnostics (#1319) 2024-03-28 10:32:34 +00:00
unpack Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
CODEOWNERS Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
clear_cache.go Fix `panic: $HOME is not set` (#1027) 2023-11-29 19:08:27 +00:00
install.go Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
installed.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
installed_test.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
labs.go Fix `panic: $HOME is not set` (#1027) 2023-11-29 19:08:27 +00:00
list.go Fix `panic: $HOME is not set` (#1027) 2023-11-29 19:08:27 +00:00
list_test.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
show.go Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
uninstall.go Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
upgrade.go Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00