Databricks CLI
Go to file
shreyas-goenka 43bc9a0d9d
Use cmdio logger to log bricks cmd execution errors (#348)
## Changes
Uses the cmdio logger to log the execution error

## Tests
Manually by making the root command return fake errors. Here is the
output:
```
shreyas.goenka@THW32HFW6T bricks % bricks bundle validate
Error: my foo error
```

```
shreyas.goenka@THW32HFW6T bricks % bricks bundle validate --progress-format=json
{
  "error": "my foo error"
}
```

---------

Co-authored-by: Pieter Noordhuis <pieter.noordhuis@databricks.com>
2023-04-24 12:11:52 +02:00
.github goreleaser deprecated --rm-dist in favor of --clean (#349) 2023-04-20 11:59:34 +02:00
.vscode Let vscode trim whitespace on save (#172) 2023-01-23 09:52:50 +01:00
bundle Update to Go SDK v0.8.0 (#351) 2023-04-21 10:30:20 +02:00
cmd Use cmdio logger to log bricks cmd execution errors (#348) 2023-04-24 12:11:52 +02:00
docs Add structured logging infrastructure (#246) 2023-03-16 14:46:53 +01:00
folders Don't depend on working directory in folders.FindDirWithLeaf (#54) 2022-09-14 15:08:55 +02:00
internal Update to Go SDK v0.8.0 (#351) 2023-04-21 10:30:20 +02:00
libs Use cmdio logger to log bricks cmd execution errors (#348) 2023-04-24 12:11:52 +02:00
python Update to Go SDK v0.8.0 (#351) 2023-04-21 10:30:20 +02:00
.gitignore Implement Terraform state synchronization and deploy (#98) 2022-12-06 00:40:45 +01:00
.goreleaser.yaml Publish snapshot binaries to snapshot release (#329) 2023-04-12 22:16:30 +02:00
CHANGELOG.md Release v0.0.30 (#355) 2023-04-21 13:55:06 +02:00
Makefile goreleaser deprecated --rm-dist in favor of --clean (#349) 2023-04-20 11:59:34 +02:00
README.md Update README (#350) 2023-04-20 13:40:48 +02:00
go.mod Update to Go SDK v0.8.0 (#351) 2023-04-21 10:30:20 +02:00
go.sum Update to Go SDK v0.8.0 (#351) 2023-04-21 10:30:20 +02:00
main.go Remove stale command (#352) 2023-04-21 13:39:54 +02:00
main_test.go Configure user agent in root command (#195) 2023-02-03 16:47:33 +01:00

README.md

Bricks CLI

build

This project is in private preview.

Documentation is available at https://docs.databricks.com/dev-tools/cli/bricks-cli.html.

Installation

This CLI is packaged as a dependency-free binary executable and may be located in any directory.

For convenient access, copy the bricks binary to any directory listed in $PATH.

Confirm the binary works by executing bricks version.

Authentication

This CLI follows the Databricks Unified Authentication principles.

You can find a detailed description at https://github.com/databricks/databricks-sdk-go#authentication.