Add bash completion script for mco
|Assignee:||R.I. Pienaar||% Done:|
|Keywords:||Affected mCollective version:|
It would be good to have a bash completion script for mco.
#3 Updated by Raphaël Pinson over 1 year ago
The script provided in the PR is a bit uglycomplex due to having to parse the ddl files with bash.
It would make it much easier if mco could provide a simple API for this, such as:
mco --list-agents mco service --list-actions mco service status --list-inputs
returning (newline|space)-separated lists of items.
#10 Updated by R.I. Pienaar over 1 year ago
- Status changed from Needs More Information to Closed
Added -v to the completion application which will output lists like:
% mco completion --list-agents -v collective:Manage multiple mcollectived instances on a single node eximng:SimpleRPC based Exim management agent filemgr:File Manager
with similar handling for listing applications, inputs etc, this is compatible with zsh’s enhanced completion system
Added a basic zsh completion in ext/zsh and merged changes from Raphael that adjusts the bash completion to use the new plugin too