-
Notifications
You must be signed in to change notification settings - Fork 72
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
Bring flag arguments to subcommand? #143
Comments
Hi, The current behavior is that flags in a command will be available in all the subcommands and not the other way around. Does it make sense? |
|
If |
Check this branch COMP_LINE="adb -s 192.168.1.64 uninstall " go run . |
Could this be something? |
Oh, I see, so you want that the root "args" will be completed in a subcommand "args". |
I don't think we have a mutual understanding :D $ birdfeeder -type scavanger feed [cursor] func getFood(a Args) []string {
// Completion command for different food. Having the type of bird would be nice
} Your issue is that |
Is there any way for a subcommands' prediction to get its parents flags?
For example
-s flag correctly predicts FA81Y1A02186.
However, if i in the handler want to predict what packages to uninstall, i need the predicted flag value from before. Because i want to query the specific device for packages that are installed.
Currently i can't. Maybe i've missed something.
The text was updated successfully, but these errors were encountered: