The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com
https://tickets.puppetlabs.com. See the following page for information on filing tickets with JIRA:
Add bash completion script for mco
|Assignee:||R.I. Pienaar||% Done:|
|Keywords:||Affected mCollective version:|
Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com
It would be good to have a bash completion script for mco.
#3 Updated by Raphaël Pinson about 3 years 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 almost 3 years 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