[
https://issues.apache.org/jira/browse/CB-4200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ian Clelland updated CB-4200:
-
Description:
This Bash script adds command-line completion for Cordova CLI.
It can be installed by sourcing it directly from a shell, or in a Bash-specific
initialization script (.bashrc, e.g.), or by placing the file in
/etc/bash_completion.d, on those systems which support it.
h3.Features:
It should support all documented options to cordova-cli. Specifically, these
are implemented:
{code}
cordova [create platform plugin prepare compile build emulate serve]
cordova create [directory]
cordova platform [add rm remove ls]
cordova platform add [ios android wp7 wp8 blackberry www]
cordova platform rm [any installed platform]
cordova plugin [add rm remove ls]
cordova plugin add [directory]
cordova plugin rm [any installed plugin]
cordova prepare|compile|build|emulate|serve [any installed platform]
{code}
h3.Limitations
The script does not know what directories are possible plugin directories, and
so cannot restrict tab completions to those.
The script does not support tab-completion on the port parameter to {{cordova
serve}}.
The script requires an installed version of cordova-cli to list installed
platforms and plugins (although it wouldn't be much use without one, anyway.)
h3.Notes
The script attempts to find an appropriate instance of cordova-cli to invoke
commands such as cordova plugin ls and cordova platform ls. It will attempt
to execute the version mentioned on the command line. If that fails, it will
look for a version on the path.
Bash completion for Cordova CLI
---
Key: CB-4200
URL: https://issues.apache.org/jira/browse/CB-4200
Project: Apache Cordova
Issue Type: New Feature
Reporter: Ian Clelland
Assignee: Ian Clelland
Attachments: cordova.completion
This Bash script adds command-line completion for Cordova CLI.
It can be installed by sourcing it directly from a shell, or in a
Bash-specific initialization script (.bashrc, e.g.), or by placing the file
in /etc/bash_completion.d, on those systems which support it.
h3.Features:
It should support all documented options to cordova-cli. Specifically, these
are implemented:
{code}
cordova [create platform plugin prepare compile build emulate serve]
cordova create [directory]
cordova platform [add rm remove ls]
cordova platform add [ios android wp7 wp8 blackberry www]
cordova platform rm [any installed platform]
cordova plugin [add rm remove ls]
cordova plugin add [directory]
cordova plugin rm [any installed plugin]
cordova prepare|compile|build|emulate|serve [any installed platform]
{code}
h3.Limitations
The script does not know what directories are possible plugin directories,
and so cannot restrict tab completions to those.
The script does not support tab-completion on the port parameter to
{{cordova serve}}.
The script requires an installed version of cordova-cli to list installed
platforms and plugins (although it wouldn't be much use without one, anyway.)
h3.Notes
The script attempts to find an appropriate instance of cordova-cli to invoke
commands such as cordova plugin ls and cordova platform ls. It will
attempt to execute the version mentioned on the command line. If that fails,
it will look for a version on the path.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira