-
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
Bash completions shouldn't exclude help
command
#1000
Comments
This is interesting. Thank you @voithos for bringing this to my attention. I will do some digging to see if there is a reason as to why this was done. |
that was a while ago! I think I, at the time, didn't want to generate documentation for an autogenerated help command. Nor did I want to include a 'see also' section if the only command was the autogenerated help command. I guess I'd be fine with it showing up in bash completions. But I don't think we should have a -help man/md page for any autogenerated help command... |
Based on the change in spf13#1065 for spf13#1000 Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
This issue is being marked as stale due to a long period of inactivity |
This is still relevant. (For the bot) |
* Don't exclude 'help' from bash completions Fixes #1000. * Provide completion for the help command 1- Show 'help' as a possible completion 2- Provide completions for the help command itself Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca> Co-authored-by: Zaven Muradyan <voithos@google.com>
There appears to be an explicit check in the bash completion code that excludes the help command:
cobra/bash_completions.go
Line 326 in b04b5bf
This means that the resulting completion script doesn't show
help
as a valid cobra command, which seems unnecessary? This is also not present in the zsh completions generator.The text was updated successfully, but these errors were encountered: