clustershell
clustershell copied to clipboard
bash completion for CLI tools
Develop /etc/bash_completion.d/clush
and /etc/bash_completion.d/nodeset
to provide intelligent completion for these tools.
It's possible to generate dynamic autocompletion from the contents of your argparse parser.
I built such a beast here: https://phabricator.wikimedia.org/diffusion/MSCA/browse/master/scap/arg.py;82d622ddc0897cb147149464776d37dd2276bc45$41
Based on: https://github.com/dbarnett/python-selfcompletion
I could try to submit a pull request if this is something you would be willing to consider merging.
Any update on this issue? I don't see how to use the approach of @20after4