-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Completion error when no custom commands #10
Comments
I ran into that bug with the completion for
When I ran into it I didn't realize that it might be working with If the upstream issues don't get traction then I might just end up manually writing the completions myself, but I've got hope that progress will be made. 🤞 I'll document this shortcoming for now and see if there's anything we can do on our side to deal with it. |
clap-rs/clap#3166 looks like it's the headline epic issue that's being used to drive the features forward. We'll have to keep an eye on that one as well. |
Related-to: #10 Signed-off-by: David Aguilar <[email protected]>
I was able to come up with a workaround that should hold us over for now. It's not built-in (it requires an extra shell pipeline step) so I documented it and linked to the upstream issue from the documentation. The fix is simple enough to apply, though. Hope that helps. |
I believe I may have fixed the upstream issue in clap-rs/clap#4612 This would be a great fix to have in place before this feature is released so I'm hoping the fix gets merged soon. Once it's merged we won't need our |
Add value hints and a value terminator so that the clap completion system can use that to generate correct completions for "garden exec", "garden cmd" and "garden <custom>" commands. Related-to: #10 Signed-off-by: David Aguilar <[email protected]>
Related-to: #10 Related-to: clap-rs/clap#3022 Related-to: clap-rs/clap#4624 Signed-off-by: David Aguilar <[email protected]>
Now that clap-rs/clap#4624 was merged we can use value_terminator to fix the zsh completions for commands that use two consecutive multi-valued arguments. A more complete solution may arrive in clap-rs/clap#4612 but until that is merged we can use this solution for now. If that change is ever merged then we can bump our clap_complete version and remove our use of value_terminator. Related-to: #10 Related-to: clap-rs/clap#3022 Related-to: clap-rs/clap#4624 Signed-off-by: David Aguilar <[email protected]>
Related-to: #10 Signed-off-by: David Aguilar <[email protected]>
Errors are returned using tab completion for
cmd
when no--commands
option was provided togarden completion zsh
. Other command completions appear to work. Command completion forcmd
also appears to work without error after completions are generated with the--commands
option. Reproduction steps:The text was updated successfully, but these errors were encountered: