-
Notifications
You must be signed in to change notification settings - Fork 226
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
[feature] shell completions #678
Comments
Hey, yes that would be nice. Unfortunately fq does not use cobra or any common go argument parser package. This is because most of the CLI and glue code in fq is implemented with jq code, it makes many things smoother to implement but also some things harder :) But i think it shouldn't be that much work to provide at least basic completion support via Let me know if it's something you would like to work on. Maybe i could spend some time adding support for one shell and then adding others would be easier? |
Sorry, I am not familiar with golang 😢 |
No worries :) think i will try to do a quick stab at it. It will probably involve mostly writing jq code. Can let you know if/when i have something. |
Can it provide completions for common shells? Like https://github.com/cli/cli/blob/cf4b73ff958b272cf3c9c0cf9351459f76b793a0/pkg/cmd/completion/completion.go. https://jmtirado.net/shell-completion-with-cobra-and-go/ should be helpful.
The text was updated successfully, but these errors were encountered: