-
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
Obsolete bash completion example (kubernetes)... and use a better example anyway #465
Comments
Of course this is really easy. In our situation, we have a command RootCmd which has all the other commands added to it. Seems like an easy example like this could just be included. Works perfectly, thanks.
|
/cc @eparis |
@rfay Ha. Hard to argue. I wrote the bash completions stuff so I could use it in kube. At the time it seemed so 'simple'. I'd love a PR that makes an actually simple example. |
it may be simple, but it is not self-explanatory. would be helpful to have an explanation of how to generalize it to my own command. |
It would be great if someone could provide an auto-completion example for a custom command :) |
+1 would love to see a generic example |
This issue is being marked as stale due to a long period of inactivity |
The current [bash_completions.md]
(https://github.com/spf13/cobra/blob/master/bash_completions.md)
) and code (it's shifted over time)
And it might be best to scale back the initial statement "is incredibly easy", since I'm a seasoned developer and can make no sense of the example at all, as it uses custom kube stuff that has moved around and doesn't seem relevant.
A basic example on a simpler go repo would work a lot better.
Thanks!
The text was updated successfully, but these errors were encountered: