You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ge...@apache.org on 2015/02/23 23:30:33 UTC
[2/3] cordova-cli git commit: remove save and restore commands
remove save and restore commands
Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/546c1e40
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/546c1e40
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/546c1e40
Branch: refs/heads/master
Commit: 546c1e40d782fcf746969214d2df505d9380896e
Parents: 902ef75
Author: Gorkem Ercan <go...@gmail.com>
Authored: Mon Feb 9 19:57:33 2015 -0500
Committer: Gorkem Ercan <go...@gmail.com>
Committed: Thu Feb 12 11:58:44 2015 -0500
----------------------------------------------------------------------
doc/cordova.txt | 7 -------
doc/restore.txt | 22 ----------------------
doc/save.txt | 17 -----------------
src/cli.js | 14 --------------
4 files changed, 60 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/546c1e40/doc/cordova.txt
----------------------------------------------------------------------
diff --git a/doc/cordova.txt b/doc/cordova.txt
index 9922fe4..38e9c0b 100644
--- a/doc/cordova.txt
+++ b/doc/cordova.txt
@@ -26,13 +26,6 @@ aliases:
build -> cordova-cli prepare && cordova-cli compile
emulate -> cordova-cli run --emulator
-Experimental Commands
-
- These commands require the --experimental flag.
-
- save ............................... Save installed platforms/plugins
- restore ............................ Restore saved platforms/plugins
-
Command-line Flags/Options
-v, --version ...................... prints out this utility's version
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/546c1e40/doc/restore.txt
----------------------------------------------------------------------
diff --git a/doc/restore.txt b/doc/restore.txt
deleted file mode 100644
index 89bfc03..0000000
--- a/doc/restore.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-Synopsis
-
- 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
-
- Because this command is experimental, you must include --experimental.
- The arguments and behavior of this command may change.
-
-See also: cordova-cli save
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/546c1e40/doc/save.txt
----------------------------------------------------------------------
diff --git a/doc/save.txt b/doc/save.txt
deleted file mode 100644
index 9ac18a8..0000000
--- a/doc/save.txt
+++ /dev/null
@@ -1,17 +0,0 @@
-Synopsis
-
- cordova-cli save <command> [--shrinkwrap] --experimental
-
-Save project metadata to config.xml
-
- platforms ............................ save the list of currently installed platforms to config.xml
-
- plugins .............................. save the list of currently installed plugins to config.xml
- [--shrinkwrap] ................... lock down plugin versions to currently installed versions
-
-Experimental
-
- Because this command is experimental, you must include --experimental.
- The arguments and behavior of this command may change.
-
-See also: cordova-cli restore
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/546c1e40/src/cli.js
----------------------------------------------------------------------
diff --git a/src/cli.js b/src/cli.js
index aae8419..f76de61 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -274,20 +274,6 @@ function cli(inputArgs) {
, undashed[3] // App name
, cfg
).done();
- } else if (cmd == 'save' || cmd == 'restore') {
- if ( !args.experimental ) {
- msg =
- 'save and restore commands are experimental, please ' +
- 'add "--experimental" to indicate that you understand that ' +
- 'it may change in the future';
- throw new CordovaError(msg);
- }
- subcommand = undashed[1];
- if (subcommand !== 'plugins' && subcommand !== 'platforms') {
- throw new CordovaError('Specify what you want to ' + cmd + ', try "' + cordova_lib.binname + ' ' + cmd + ' plugins" or "' + cordova_lib.binname + ' ' + cmd + ' platforms"');
- }
- 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: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org