databricks-cli/cmd
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
..
account Do not generate prompts for certain commands (#438) 2023-06-05 19:38:45 +02:00
api Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
auth Do not use FgWhite and FgBlack for terminal output (#435) 2023-06-05 17:30:40 +02:00
bundle Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
configure Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
fs Add fs ls command for dbfs (#429) 2023-06-05 17:41:30 +02:00
root Add readable console logger (#370) 2023-06-01 11:37:33 +02:00
sync Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
version Use cmdio in version command for `--output` flag (#419) 2023-06-01 12:03:22 +02:00
workspace Do not generate prompts for certain commands (#438) 2023-06-05 19:38:45 +02:00