sacred icon indicating copy to clipboard operation
sacred copied to clipboard

command line completion

Open ahundt opened this issue 8 years ago • 2 comments

I like that sacred generates command line utils for me, is there any chance it could also incorporate shell completion bash/zsh/etc?

One sensible option or source of reference code may be python-fire.

ahundt avatar Mar 18 '17 19:03 ahundt

Oh, does python fire support tab completion? Yes, that might be a good starting point then. I would love to have tab completion, but didn't figure out yet how to do that. Over the next few weeks I won't have much time to work on Sacred, though. Any chance that you would you be interested in working on this?

Qwlouse avatar Mar 20 '17 08:03 Qwlouse

Yes, python-fire can generate completion scripts according to their README.md. I'm still just getting started evaluating & using sacred so I don't think I can commit to anything at the moment. I do often contribute to the projects I end up using heavily though and this seems to have potential.

ahundt avatar Mar 20 '17 10:03 ahundt