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

Fix zsh completion #1108

Merged
merged 1 commit into from
Feb 13, 2022
Merged

Fix zsh completion #1108

merged 1 commit into from
Feb 13, 2022

Conversation

whi-tw
Copy link
Contributor

@whi-tw whi-tw commented Feb 13, 2022

4ec533b introduced a bug which causes the 'hidden' cli parameter __complete to be ignored.

Add a check for this parameter, so that it can be correctly passed to cobra

There is still an issue - yq <tab> will suggest that a subcommand is run, not a file. I think 'pick eval by default' could be done in a more cobra-friendly way, but I just don't know enough about it to implement that

4ec533b introduced a bug which causes the 'hidden' cli parameter
`__complete` to be ignored.

Add a check for this parameter, so that it can pass to `cobra`

Signed-off-by: Tom Whitwell <tom@whi.tw>
@mikefarah
Copy link
Owner

Yeah I couldn't find a way to do it in cobra either - thanks for the fix.

@mikefarah mikefarah merged commit 4b2b47a into mikefarah:master Feb 13, 2022
@whi-tw whi-tw deleted the fix-completion branch February 13, 2022 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants