feat(cli): Add a subcommand to generate shell completions#74
feat(cli): Add a subcommand to generate shell completions#74kunzaatko wants to merge 5 commits intoelkowar:mainfrom
Conversation
|
Currently there is no way to hide the subcommand in the completion. |
|
Note to self: The completion for |
Note to Self: The new Rust native completion system in clap has the ability to hide the hidden commands. |
Rust native completions mean that the parsing and logic of the completions of the flags and subcommands itself is done within Rust and only the completion statements are passed to the shell. This should be more stable and up to date since the completion can change with new builds. Clap implements this as a modern approach and it already has more features and capabilities than the static completion script generation. It also fixes the issue with hiding the `root-manage-symlinks` subcommand from the completion.
It should support the `git` subcommand command completion feature. Add it to the docs to let the users choose.
|
I currently wasn't able to add the Let me know, whether it is desired to generate the shell-completions in the build scripts. Otherwise this PR is ready to merge 🚀 |
|
Damn 2 weeks ago and still not merged yet :( |
|
Elko hasn't been active for some time on GitHub it seems. @fepfitra Lets wait some more. Perhaps he is on holiday. We should respect his personal time... I will ping him (or you can) if there is no activity for more than a month. |
Adds a subcommand to generate shell completions using
clap_complete.It is quite straight forward.
Next steps:
what is your preference here?)
yolk edit ...should complete the eggs,yolk git ...shouldcomplete
gitcommands under theyolkdirectory and similar