The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com
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
This issue is currently not available for export. If you are experiencing the issue described below, please file a new ticket in JIRA. Once a new ticket has been created, please add a link to it that points back to this Redmine ticket.
It would be good to have a bash completion script for mco.
#3 Updated by Raphaël Pinson over 2 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 over 2 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