-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Default help
and completion
command descriptions are inconsistent
#1458
Comments
This is my fault. The inconsistency comes from the fact that I based the command on helm's completion command which formats it's command texts differently. 1- #1455 fixes the capitalization |
is it possible to remove those parenthesis around command completion descriptions or replace them with your own description prefix/suffix? |
Currently no, but it wouldn't be difficulty to make the format configurable for bash v2 and PowerShell. Note that for zsh and fish the description format is handled by the shell. |
This issue is being marked as stale due to a long period of inactivity |
Not stale as we have #1455. |
As of v1.2.0, there are two commands that are included by default in every Cobra CLI. Their formatting is inconsistent, which is incredibly sloppy, especially considering that their descriptions can't be changed; to my knowledge these commands can only be hidden.
First, one
Short
description is uppercased, and one is lowercased. Recommendation: Make them both uppercase.Second, one
Long
description has an extra leading newline, and the other does not. Recommendation: Remove the extra newline.In conclusion, it looks like the new
completion
command did not even attempt to maintain consistent formatting. A good long term solution would be to allow users to edit these descriptions to match their preferred style.The text was updated successfully, but these errors were encountered: