haiti icon indicating copy to clipboard operation
haiti copied to clipboard

shell completion

Open noraj opened this issue 2 years ago • 5 comments

generate shell / tab completion for the CLI tool

ideas:

  • https://github.com/DannyBen/completely
  • https://github.com/drnic/tabtab

noraj avatar Sep 11 '22 23:09 noraj

Hey, can I work on this one?

pypas avatar Oct 01 '22 14:10 pypas

@pypas Yes please, it would be greatly appreciated!

noraj avatar Oct 01 '22 15:10 noraj

Hey @noraj sorry, after taking a look at it couldn't figure out a nice solution for this one

pypas avatar Oct 03 '22 13:10 pypas

@pypas I understand, no worry, this is not an easy task.

noraj avatar Oct 04 '22 17:10 noraj

I just found https://github.com/crdx/docopt-compgen and I am able to generate something with haiti --help | tail +3 | docopt-compgen but it would work only for bash.

https://github.com/Infinidat/infi.docopt_completion would certainly work too since the help message is quiet language agnostic but this one works also for zsh. However it seems a bit abandoned.

noraj avatar Jan 31 '23 21:01 noraj