reuse-tool icon indicating copy to clipboard operation
reuse-tool copied to clipboard

Add completion for popular shells

Open linozen opened this issue 3 years ago • 2 comments

It would be really nice to have completion for all the popular shells such as:

  • [ ] bash
  • [ ] zsh
  • [ ] fish

linozen avatar Nov 23 '22 09:11 linozen

Ideally instrument it in a way that parameters in Python and completions can easily be kept in sync to prevent drift. One option is to generate them from the argparse definitions. Another approach can be to generate them from the helpfile or manpage as some external tools do. For Zsh at least it is worth considering a mechanism of installing completions.

nicorikken avatar Nov 23 '22 15:11 nicorikken

Perhaps argcomplete?

rpatterson avatar May 05 '23 08:05 rpatterson