databricks-cli/internal
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
..
build Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
api_test.go Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
clusters_test.go Do not generate prompts for certain commands (#438) 2023-06-05 19:38:45 +02:00
filer_test.go Add fs ls command for dbfs (#429) 2023-06-05 17:41:30 +02:00
fs_ls_test.go Add fs ls command for dbfs (#429) 2023-06-05 17:41:30 +02:00
helpers.go Speed up sync integration tests (#428) 2023-06-02 14:02:18 +00:00
locker_test.go Fix locker integration test (#417) 2023-06-01 09:38:03 +02:00
secrets_test.go Do not prompt for List methods (#411) 2023-05-26 16:02:53 +02:00
sync_test.go Speed up sync integration tests (#428) 2023-06-02 14:02:18 +00:00
version_test.go Use cmdio in version command for `--output` flag (#419) 2023-06-01 12:03:22 +02:00
workspace_test.go Do not generate prompts for certain commands (#438) 2023-06-05 19:38:45 +02:00