mirror of https://github.com/databricks/cli.git
e8b76a7f13
## Changes This combination of changes allows pretty-printing errors happening during the "load" and "init" phases, including their locations. Move to render code into a separate module dedicated to rendering `diag.Diagnostics` in a human-readable format. This will be used for the `bundle deploy` command. Preserve the "bundle" value if an error occurs in mutators. Rewrite the go templates to handle the case when the bundle isn't yet loaded if an error occurs during loading, that is possible now. Improve rendering for errors and warnings: - don't render empty locations - render "details" for errors if they exist Add `root.ErrAlreadyPrinted` indicating that the error was already printed, and the CLI entry point shouldn't print it again. ## Tests Add tests for output, that are especially handy to detect extra newlines |
||
---|---|---|
.. | ||
args.go | ||
auth.go | ||
auth_options.go | ||
auth_options_test.go | ||
auth_test.go | ||
bundle.go | ||
bundle_test.go | ||
io.go | ||
logger.go | ||
progress_logger.go | ||
progress_logger_test.go | ||
root.go | ||
silent_err.go | ||
user_agent.go | ||
user_agent_command.go | ||
user_agent_command_test.go | ||
user_agent_upstream.go | ||
user_agent_upstream_test.go |