You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/12/23 20:19:46 UTC

cordova-cli git commit: CB-8211 Add --link option to `cordova plugin add` (close #191)

Repository: cordova-cli
Updated Branches:
  refs/heads/master 3afab318b -> e4210af2b


CB-8211 Add --link option to `cordova plugin add` (close #191)


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/e4210af2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/e4210af2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/e4210af2

Branch: refs/heads/master
Commit: e4210af2b703c7b3e9213c9385d89289b1670b8c
Parents: 3afab31
Author: Sandeep Mistry <sa...@toushay.com>
Authored: Mon Aug 25 17:25:02 2014 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Tue Dec 23 14:18:58 2014 -0500

----------------------------------------------------------------------
 doc/plugin.txt | 2 ++
 src/cli.js     | 2 ++
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/e4210af2/doc/plugin.txt
----------------------------------------------------------------------
diff --git a/doc/plugin.txt b/doc/plugin.txt
index 2b1bb3f..a437a1d 100644
--- a/doc/plugin.txt
+++ b/doc/plugin.txt
@@ -16,6 +16,8 @@ Manage project plugins
 
         [--noregistry] ............................ don't search the registry for plugins
 
+        [--link] .................................. create a symbolic link to the plugin instead of copying files
+
     remove <pluginid> [...] ....................... remove plugins with the given IDs
 
     list .......................................... list currently installed plugins

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/e4210af2/src/cli.js
----------------------------------------------------------------------
diff --git a/src/cli.js b/src/cli.js
index 50143a1..b5ff511 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -72,6 +72,7 @@ function cli(inputArgs) {
         , 'link-to' : path
         , 'searchpath' : String
         , 'variable' : Array
+        , 'link': Boolean
         // Flags to be passed to `cordova build/run/emulate`
         , 'debug' : Boolean
         , 'release' : Boolean
@@ -285,6 +286,7 @@ function cli(inputArgs) {
                             , usegit : args.usegit
                             , cli_variables : cli_vars
                             , browserify: args.browserify || false
+                            , link: args.link || 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