databricks-cli/cmd/bundle/generate
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
..
generate_test.go Move path field to bundle type (#1316) 2024-03-27 09:03:24 +00:00
job.go Make bundle loaders return diagnostics (#1319) 2024-03-28 10:32:34 +00:00
pipeline.go Make bundle loaders return diagnostics (#1319) 2024-03-28 10:32:34 +00:00
utils.go Added `bundle generate pipeline` command (#1139) 2024-01-25 11:35:14 +00:00