-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Duplicate methods of generating shell completion scripts #8862
Comments
Thank you for catching this @marckhouzam , I was using the other one by mistake prior to seeing this issue. The |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This may not be considered a bug, but I wanted to make the maintainers aware of the situation.
To facilitate the use of shell completion, Cobra 1.2 automatically provides a "completion" command (https://github.com/spf13/cobra/releases/tag/v1.2.0). This command needs to be explicitly disabled for programs that don't want to use it (https://github.com/spf13/cobra/blob/master/shell_completions.md#adapting-the-default-completion-command).
Hugo 0.87.0 moved to Cobra 1.2.1 and has inherited this new "completion" command.
Note that the "completion" command provided by Cobra is more complete that the one defined in Hugo:
--no-descriptions
flagIt is in part to avoid projects missing some of these subtle tweaks that Cobra provides the completion command itself.
What version of Hugo are you using (
hugo version
)?0.87.0
Does this issue reproduce with the latest release?
Yes
The text was updated successfully, but these errors were encountered: