clustershell icon indicating copy to clipboard operation
clustershell copied to clipboard

bash completion for CLI tools

Open thiell opened this issue 12 years ago • 2 comments

Develop /etc/bash_completion.d/clush and /etc/bash_completion.d/nodeset to provide intelligent completion for these tools.

thiell avatar Mar 03 '12 16:03 thiell

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.

20after4 avatar Oct 08 '16 01:10 20after4

Any update on this issue? I don't see how to use the approach of @20after4

Falkor avatar Oct 02 '19 14:10 Falkor