Open PawelLipski opened 2 years ago
TBH I've barely touched the topic. Glimpsed over shtab & argcomplete, tried to "just attach" their machinery on cli.create_cli_parser
. More work on that needed.
There's gonna be one more challenge: I don't think such tools would support machete being a git subcommand. In other words: this is not a completion for git-machete
nor machete
, but for git machete
. And that could cause trouble:
_git_machete()
/ _git-machete()
— nb.: prefixed with git
,complete -c git -n "__fish_seen_subcommand_from machete" …
.
Esp. to implement https://github.com/VirtusLab/git-machete/issues/119 and https://github.com/VirtusLab/git-machete/issues/290
Some early attempt for both has been done by @kgadek, but the generated scripts don't seem nowhere near complete :/