You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ni...@apache.org on 2016/03/08 07:22:31 UTC
cordova-cli git commit: CB-10673 add plugin add --force option. This
closes #236
Repository: cordova-cli
Updated Branches:
refs/heads/master 270e5a0b8 -> 27a6d486c
CB-10673 add plugin add --force option. This closes #236
Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/27a6d486
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/27a6d486
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/27a6d486
Branch: refs/heads/master
Commit: 27a6d486cf54e8257f06211fd887b8d3657c55a3
Parents: 270e5a0
Author: Byoungro So <by...@intel.com>
Authored: Tue Mar 1 23:19:59 2016 -0800
Committer: Nikhil Khandelwal <ni...@microsoft.com>
Committed: Mon Mar 7 22:20:06 2016 -0800
----------------------------------------------------------------------
doc/plugin.txt | 5 ++++-
doc/readme.md | 3 ++-
src/cli.js | 2 ++
3 files changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/27a6d486/doc/plugin.txt
----------------------------------------------------------------------
diff --git a/doc/plugin.txt b/doc/plugin.txt
index 7a4bbb0..4779e3f 100644
--- a/doc/plugin.txt
+++ b/doc/plugin.txt
@@ -20,6 +20,9 @@ Manage project plugins
--browserify ................... Compile plugin JS at build time using
browserify instead of runtime.
+ --force ........................ Forces copying source files from the plugin even if the
+ same file already exists in the target directory.
+
remove <pluginid>|<name> [...] ..... Remove plugins with the given IDs/name.
--save ......................... Remove the information for specified plugin from config.xml
@@ -48,4 +51,4 @@ Examples
cordova-cli plugin add ../cordova-plugin-camera --save
cordova-cli plugin add ../cordova-plugin-camera.tgz --save
cordova-cli plugin rm camera --save
- cordova-cli plugin ls
\ No newline at end of file
+ cordova-cli plugin ls
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/27a6d486/doc/readme.md
----------------------------------------------------------------------
diff --git a/doc/readme.md b/doc/readme.md
index 076a1a1..116435c 100644
--- a/doc/readme.md
+++ b/doc/readme.md
@@ -299,7 +299,7 @@ Manage project plugins
```bash
cordova {plugin | plugins} [
- add <plugin-spec> [..] {--searchpath=<directory> | --noregistry | --link | --save | --browserify} |
+ add <plugin-spec> [..] {--searchpath=<directory> | --noregistry | --link | --save | --browserify | --force} |
{remove | rm} {<pluginid> | <name>} --save |
{list | ls} |
search [<keyword>] |
@@ -315,6 +315,7 @@ cordova {plugin | plugins} [
| |--link | When installing from a local path, creates a symbolic link instead of copying files. The extent to which files are linked varies by platform. Useful for plugin development.
| |--save | Save the `<plugin-spec>` as part of the `plugin` element into `config.xml`.
| |--browserify | Compile plugin JS at build time using browserify instead of runtime.
+| |--force | _Introduced in version 6.1._ Forces copying source files from the plugin even if the same file already exists in the target directory.
| remove `<pluginid>|<name>` [...]| | Remove plugins with the given IDs/name.
| |--save | Remove the specified plugin from config.xml
|list | | List currently installed plugins
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/27a6d486/src/cli.js
----------------------------------------------------------------------
diff --git a/src/cli.js b/src/cli.js
index 5015dcd..567d024 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -86,6 +86,7 @@ function cli(inputArgs) {
, 'searchpath' : String
, 'variable' : Array
, 'link': Boolean
+ , 'force': Boolean
// Flags to be passed to `cordova build/run/emulate`
, 'debug' : Boolean
, 'release' : Boolean
@@ -280,6 +281,7 @@ function cli(inputArgs) {
, link: args.link || false
, save: args.save || false
, shrinkwrap: args.shrinkwrap || false
+ , force: args.force || false
};
cordova.raw[cmd](subcommand, targets, download_opts).done();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org