Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executable sub-commands missing indentation in help text #479

Open
marckhouzam opened this issue Sep 12, 2023 · 0 comments
Open

Executable sub-commands missing indentation in help text #479

marckhouzam opened this issue Sep 12, 2023 · 0 comments
Labels
kind/bug PR/issue related to a bug needs-triage

Comments

@marckhouzam
Copy link
Contributor

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

{{.UseLine}}{{end}}{{if .HasAvailableSubCommands}}

Steps to reproduce the bug / Relevant debug output

See above.

Output of tanzu version

Today's main: 334e35d

Environment where the bug was observed (cloud, OS, etc)

Locally

@marckhouzam marckhouzam added kind/bug PR/issue related to a bug needs-triage labels Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug PR/issue related to a bug needs-triage
Projects
None yet
Development

No branches or pull requests

1 participant