tanzu-cli
tanzu-cli copied to clipboard
Executable sub-commands missing indentation in help text
Bug description
A sub-command that can be run is missing the indentation in its usage line in the help.
$ tz plugin list -h
List installed standalone plugins or plugins recommended by the contexts being used
Usage:
tanzu plugin list [flags]
[...]
compared to non-executable sub-commands, which do have the indentation:
tz plugin -h
Provides all lifecycle operations for plugins
Usage:
tanzu plugin [command]
Available Commands:
clean Clean the plugins
[...]
Expected behavior
For consistency there should be an indentation in all usage lines.
The problem is the missing spaces before {{.UseLine}}
in this line
https://github.com/vmware-tanzu/tanzu-cli/blob/334e35d8f0054050a63d36dfdda1877c37304aa6/pkg/cli/usage.go#L101
Steps to reproduce the bug / Relevant debug output
See above.
Output of tanzu version
Today's main: 334e35d8f
Environment where the bug was observed (cloud, OS, etc)
Locally