databricks-cli/cmd/workspace
Andrew Nester df3f5863c7
Do not generate prompts for certain commands (#438)
## Changes
Some of the commands do not support prompts, for example `workspace
get-status` but we were wrongly suggesting customers some option.

Quick fix for this is not to provide prompts for these known commands.

Note: it uses a method from this PR in Go SDK
https://github.com/databricks/databricks-sdk-go/pull/416

## Tests
Running `workspace get-status`

Before
```
andrew.nester@HFW9Y94129 multiples-tasks % ../../cli/cli workspace get-status
Error: Path () doesn't start with '/'
```

After
```
andrew.nester@HFW9Y94129 multiples-tasks % ../../cli/cli workspace get-status
Error: accepts 1 arg(s), received 0

```
2023-06-05 19:38:45 +02:00
..
alerts Better error message if can not load prompts (#437) 2023-06-05 16:32:03 +02:00
catalogs Do not use FgWhite and FgBlack for terminal output (#435) 2023-06-05 17:30:40 +02:00
cluster-policies Do not generate prompts for certain commands (#438) 2023-06-05 19:38:45 +02:00
clusters Do not generate prompts for certain commands (#438) 2023-06-05 19:38:45 +02:00
current-user Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
dashboards Do not use FgWhite and FgBlack for terminal output (#435) 2023-06-05 17:30:40 +02:00
data-sources Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
experiments Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
external-locations Do not use FgWhite and FgBlack for terminal output (#435) 2023-06-05 17:30:40 +02:00
functions Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
git-credentials Do not generate prompts for certain commands (#438) 2023-06-05 19:38:45 +02:00
global-init-scripts Better error message if can not load prompts (#437) 2023-06-05 16:32:03 +02:00
grants Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
groups Better error message if can not load prompts (#437) 2023-06-05 16:32:03 +02:00
instance-pools Better error message if can not load prompts (#437) 2023-06-05 16:32:03 +02:00
instance-profiles Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
ip-access-lists Better error message if can not load prompts (#437) 2023-06-05 16:32:03 +02:00
jobs Do not use FgWhite and FgBlack for terminal output (#435) 2023-06-05 17:30:40 +02:00
libraries Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
metastores Do not use FgWhite and FgBlack for terminal output (#435) 2023-06-05 17:30:40 +02:00
model-registry Added spinner when loading command prompts (#420) 2023-06-02 14:13:18 +02:00
permissions Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
pipelines Better error message if can not load prompts (#437) 2023-06-05 16:32:03 +02:00
policy-families Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
providers Better error message if can not load prompts (#437) 2023-06-05 16:32:03 +02:00
queries Do not use FgWhite and FgBlack for terminal output (#435) 2023-06-05 17:30:40 +02:00
query-history Do not use FgWhite and FgBlack for terminal output (#435) 2023-06-05 17:30:40 +02:00
recipient-activation Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
recipients Better error message if can not load prompts (#437) 2023-06-05 16:32:03 +02:00
repos Better error message if can not load prompts (#437) 2023-06-05 16:32:03 +02:00
schemas Do not use FgWhite and FgBlack for terminal output (#435) 2023-06-05 17:30:40 +02:00
secrets Do not use FgWhite and FgBlack for terminal output (#435) 2023-06-05 17:30:40 +02:00
service-principals Better error message if can not load prompts (#437) 2023-06-05 16:32:03 +02:00
serving-endpoints Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
shares Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
storage-credentials Do not use FgWhite and FgBlack for terminal output (#435) 2023-06-05 17:30:40 +02:00
table-constraints Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
tables Do not use FgWhite and FgBlack for terminal output (#435) 2023-06-05 17:30:40 +02:00
token-management Do not use FgWhite and FgBlack for terminal output (#435) 2023-06-05 17:30:40 +02:00
tokens Do not use FgWhite and FgBlack for terminal output (#435) 2023-06-05 17:30:40 +02:00
users Better error message if can not load prompts (#437) 2023-06-05 16:32:03 +02:00
volumes Better error message if can not load prompts (#437) 2023-06-05 16:32:03 +02:00
warehouses Do not use FgWhite and FgBlack for terminal output (#435) 2023-06-05 17:30:40 +02:00
workspace Do not generate prompts for certain commands (#438) 2023-06-05 19:38:45 +02:00
workspace-bindings Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
workspace-conf Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
cmd.go Update to Go SDK v0.9.0 (#396) 2023-05-22 21:27:22 +02:00