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

Document howto generate completions #932

Closed
andig opened this issue Aug 18, 2019 · 3 comments
Closed

Document howto generate completions #932

andig opened this issue Aug 18, 2019 · 3 comments
Labels
kind/documentation Documentation of cobra itself

Comments

@andig
Copy link

andig commented Aug 18, 2019

https://github.com/spf13/cobra/blob/master/zsh_completions.md mentions its supported by root command. It would be great to document how to property create complextions for bash and zsh both, potentially switching on detecting the current shell.

@jharshman jharshman added the kind/documentation Documentation of cobra itself label Oct 3, 2019
@jharshman jharshman added this to the 1.0.0 milestone Oct 7, 2019
@github-actions
Copy link

github-actions bot commented Apr 4, 2020

This issue is being marked as stale due to a long period of inactivity

@jharshman jharshman removed this from the 1.0.0 milestone Apr 10, 2020
@marckhouzam
Copy link
Collaborator

@andig The documentation for shell completion has extensively changed recently. An example of generating the different completion scripts can be found here:
https://github.com/spf13/cobra/blame/884edc58ad08083e6c9a505041695aa2c3ca2d7a/shell_completions.md#L56

Does the current documentation address your concerns?

@andig
Copy link
Author

andig commented Jul 14, 2020

Does the current documentation address your concerns?

Just perfect, big thank you!

@andig andig closed this as completed Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Documentation of cobra itself
Projects
None yet
Development

No branches or pull requests

3 participants