cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (CB-4200) Bash completion for Cordova CLI
Date Thu, 01 Aug 2013 15:49:49 GMT


ASF subversion and git services commented on CB-4200:

Commit 753214ca77171b8b35bc5687b044c52de9756bf5 in branch refs/heads/master from [~iclelland]
[;h=753214c ]

[CB-4200] Add Bash command-line completion

> Bash completion for Cordova CLI
> -------------------------------
>                 Key: CB-4200
>                 URL:
>             Project: Apache Cordova
>          Issue Type: New Feature
>          Components: CLI
>            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
> 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:

View raw message