databricks-cli/cmd
Andrew Nester 47e434db2f
Improve error message when `--json` flag is specified (#933)
## Changes
Improve error message when --json input is provided

## Tests
```
cli % databricks model-registry create-model mymodel --json @./input.json              
Error: when --json flag is specified, no positional arguments are required. Provide NAME in your JSON input
```
2023-11-08 15:07:29 +00:00
..
account Improve error message when `--json` flag is specified (#933) 2023-11-08 15:07:29 +00:00
api Update Go SDK to v0.19.0 (#729) 2023-09-05 09:43:57 +00:00
auth Added `env.UserHomeDir(ctx)` for parallel-friendly tests (#955) 2023-11-08 14:50:20 +00:00
bundle Make configure command visible + fix bundle command description (#961) 2023-11-08 07:33:40 +00:00
configure Make configure command visible + fix bundle command description (#961) 2023-11-08 07:33:40 +00:00
fs Remove dependency on global state for remaining commands (#613) 2023-07-27 10:03:08 +00:00
root Added `env.UserHomeDir(ctx)` for parallel-friendly tests (#955) 2023-11-08 14:50:20 +00:00
sync Never load authentication configuration from bundle for sync command (#889) 2023-10-19 12:50:46 +00:00
version Added description for version command (#737) 2023-09-06 08:41:47 +00:00
workspace Improve error message when `--json` flag is specified (#933) 2023-11-08 15:07:29 +00:00
cmd.go Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00