databricks-cli/cmd/labs/project
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
..
testdata Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
command_test.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
entrypoint.go Make bundle loaders return diagnostics (#1319) 2024-03-28 10:32:34 +00:00
fetcher.go Fix `panic: $HOME is not set` (#1027) 2023-11-29 19:08:27 +00:00
helpers.go Fix `panic: $HOME is not set` (#1027) 2023-11-29 19:08:27 +00:00
init_test.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
installed.go Move folders package into libs (#1184) 2024-02-07 16:33:18 +00:00
installed_test.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
installer.go Prompt for account profile only for account-level command execution instead of during `databricks labs install` flow (#1128) 2024-01-22 17:35:13 +00:00
installer_test.go Stub out Python virtual environment installation for `labs` commands (#1057) 2023-12-11 16:30:19 +00:00
login.go Prompt for account profile only for account-level command execution instead of during `databricks labs install` flow (#1128) 2024-01-22 17:35:13 +00:00
project.go Fix `panic: $HOME is not set` (#1027) 2023-11-29 19:08:27 +00:00
project_test.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
proxy.go Use Go SDK Iterators when listing resources with the CLI (#1202) 2024-02-21 14:16:36 +00:00
schema.json Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00