databricks-cli/cmd/account
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
..
billable-usage Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
budgets Better error message if can not load prompts (#437) 2023-06-05 16:32:03 +02:00
credentials Better error message if can not load prompts (#437) 2023-06-05 16:32:03 +02:00
custom-app-integration Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
encryption-keys 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
ip-access-lists Better error message if can not load prompts (#437) 2023-06-05 16:32:03 +02:00
log-delivery Better error message if can not load prompts (#437) 2023-06-05 16:32:03 +02:00
metastore-assignments Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
metastores Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
networks Do not generate prompts for certain commands (#438) 2023-06-05 19:38:45 +02:00
o-auth-enrollment Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
private-access Better error message if can not load prompts (#437) 2023-06-05 16:32:03 +02:00
published-app-integration Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
service-principal-secrets Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
service-principals Better error message if can not load prompts (#437) 2023-06-05 16:32:03 +02:00
storage Better error message if can not load prompts (#437) 2023-06-05 16:32:03 +02:00
storage-credentials Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
users Better error message if can not load prompts (#437) 2023-06-05 16:32:03 +02:00
vpc-endpoints Do not generate prompts for certain commands (#438) 2023-06-05 19:38:45 +02:00
workspace-assignment Changed service template to correctly handle required positional arguments (#405) 2023-05-26 14:46:08 +02:00
workspaces Do not generate prompts for certain commands (#438) 2023-06-05 19:38:45 +02:00
cmd.go Update to Go SDK v0.9.0 (#396) 2023-05-22 21:27:22 +02:00