-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
shell completion scripts #812
Comments
happy to have the PR, go ahead and add it anywhere and I can move it to where it needs. |
Sure thing! I'll get it submitted as soon as possible |
Hi @Eloquencere, hi @schollz, On release 9.6.6 (and before that), completion scripts for bash and zsh was included in artefacts. Release 9.6.7 include a PR to change the image used to build:
Since then, the artefact has changed its name style and no longer contains the completion scripts. I don't know a lot about Go, but it seems that completion scripts can be generated from the code. |
Hi @MaxenceG2M, Yes, it might seem tempting to stitch the script generation functionality right into the code and there are a few benefits to that like, completion script generation can be shell-independent as the format would remain more or less the same and the completion script can better flow with the actual implementation of the CLI. |
Hi, I use croc extensively in my workflow and as a result I have written my own simple zsh completion script, which works well me. Just thought of contributing it here so that, other people using the cli can also benefit from it.
It's just a zsh completion script since zsh has been my primary shell. It would be great if someone can guide me to include it in the file structure, I'm not really proficient in golang, I'm just happy with croc and would like to contribute to the project.
The text was updated successfully, but these errors were encountered: