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

Add a subcommand to generate a completion script #74

Closed
corneliusweig opened this issue Nov 13, 2019 · 3 comments
Closed

Add a subcommand to generate a completion script #74

corneliusweig opened this issue Nov 13, 2019 · 3 comments

Comments

@corneliusweig
Copy link
Contributor

Cobra has a builtin generator to create completion scripts for bash and zsh. Many projects make use of this generator, among others sigs.k8s.io/krew, k8s.io/minikube, or GoogleContainerTools/skaffold. This is usually used as source <(berglas completion zsh) in your shell, which then offers an improved CLI experience -- especially for new and casual users.

Is there a particular reason why berglas does not want that?

@sethvargo
Copy link
Member

I think it was just an oversight. I'll try to get this into the next version.

@corneliusweig
Copy link
Contributor Author

If you like I can get my hands dirty too.

@sethvargo
Copy link
Member

7552f02

@lock lock bot locked as resolved and limited conversation to collaborators Feb 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants