VirtusLab / git-machete

Probably the sharpest git repository organizer & rebase/merge workflow automation tool you've ever seen
MIT License
898 stars 48 forks source link

Consider autogenerating completion by `argcomplete` or `shtab` #295

Open PawelLipski opened 2 years ago

PawelLipski commented 2 years ago

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 :/

kgadek commented 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: