You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename Available Commands to Main Commands (#4975)
## Changes
Rename command group `Available Commands` to `Main Commands`.
With the rename, if only one command group survives filtering, drop it
so Cobra can default to `Available Commands:` again.
## Why
If `Management Commands` and/or `Permission Commands` groups are
present, it is a bit confusing from `--help` that they are also
available (because customers might stop parsing the list after the
`Available Commands` heading group ends)
before:
```
% databricks permissions --help
Usage:
databricks permissions [flags]
databricks permissions [command]
Available Commands
get Get object permissions.
set Set object permissions.
update Update object permissions.
Permission Commands
get-permission-levels Get object permission levels.
```
after:
```
% ./cli permissions --help
Usage:
databricks permissions [flags]
databricks permissions [command]
Main Commands
get Get object permissions.
set Set object permissions.
update Update object permissions.
Permission Commands
get-permission-levels Get object permission levels.
Flags:
-h, --help help for permissions
```
## Tests
manual, see Why section above ^
---------
Co-authored-by: simon <4305831+simonfaltum@users.noreply.github.com>
0 commit comments