Repository: cordova-cli
Updated Branches:
  refs/heads/master bada0e836 -> 17ce90623


searchpath option is added to restore

Correctly pass the searchpath option to restore command.
GitHub: close #197


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

Branch: refs/heads/master
Commit: 17ce90623a14b76847f8974e0feda37b1768b459
Parents: bada0e8
Author: Gorkem Ercan <[email protected]>
Authored: Fri Nov 14 12:09:15 2014 -0500
Committer: Mark Koudritsky <[email protected]>
Committed: Thu Nov 20 11:21:38 2014 -0500

----------------------------------------------------------------------
 doc/restore.txt | 9 ++++++++-
 src/cli.js      | 3 ++-
 2 files changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/17ce9062/doc/restore.txt
----------------------------------------------------------------------
diff --git a/doc/restore.txt b/doc/restore.txt
index 02997ed..89bfc03 100644
--- a/doc/restore.txt
+++ b/doc/restore.txt
@@ -1,10 +1,17 @@
 Synopsis
 
-    cordova-cli restore <command> --experimental
+    cordova-cli restore <command> [options] --experimental
 
 Restore project based on to config.xml
 
     plugins ........................... install all plugins that are currently 
listed in config.xml
+             
+             
+            [--searchpath <directory>] ................ when restoring plugins 
listed by ID, look in this directory and
+                                                    each of its subdirectories 
for the plugin before hitting the registry.
+                                                    Multiple search paths can 
be used by either specifying the flag multiple
+                                                    times, or by separating 
paths with a delimiter (: on 'nix, ; on Windows).
+    
     platforms ......................... install all platforms that are 
currently listed in config.xml
 
 Experimental

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/17ce9062/src/cli.js
----------------------------------------------------------------------
diff --git a/src/cli.js b/src/cli.js
index cc6fc0e..50143a1 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -266,7 +266,8 @@ function cli(inputArgs) {
         if (subcommand !== 'plugins' && subcommand !== 'platforms') {
             throw new CordovaError('Specify what you want to '+ cmd + ', try 
"cordova '+ cmd +' plugins" or " cordova '+cmd+' platforms"');
         }
-        cordova.raw[cmd].call(null, subcommand, { shrinkwrap:args.shrinkwrap 
}).done();
+        cordova.raw[cmd].call(null, subcommand, { shrinkwrap:args.shrinkwrap,
+                                                    searchpath: 
args.searchpath }).done();
     } else {
         // platform/plugins add/rm [target(s)]
         subcommand = undashed[1]; // sub-command like "add", "ls", "rm" etc.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to