You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2013/01/10 23:44:51 UTC

[1/2] git commit: route "platforms" command to platform, same with "plugins" -> plugin

route "platforms" command to platform, same with "plugins" -> plugin


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

Branch: refs/heads/master
Commit: e71881f0fc133765635c48d4981c27cc4ee71a93
Parents: 4f9eebe
Author: Fil Maj <ma...@gmail.com>
Authored: Thu Jan 10 13:37:06 2013 -0800
Committer: Fil Maj <ma...@gmail.com>
Committed: Thu Jan 10 13:37:06 2013 -0800

----------------------------------------------------------------------
 cordova.js   |    2 ++
 doc/help.txt |    4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/e71881f0/cordova.js
----------------------------------------------------------------------
diff --git a/cordova.js b/cordova.js
index 7d56ab1..3296841 100755
--- a/cordova.js
+++ b/cordova.js
@@ -4,9 +4,11 @@ module.exports = {
     help:     require('./src/help'),
     create:   require('./src/create'),
     platform: require('./src/platform'),
+    platforms: require('./src/platform'),
     build:    require('./src/build'),
     emulate:  require('./src/emulate'),
     plugin:   require('./src/plugin'),
+    plugins:   require('./src/plugin'),
     serve:    require('./src/serve'),
     on:       function() {
         cordova_events.on.apply(cordova_events, arguments);

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/e71881f0/doc/help.txt
----------------------------------------------------------------------
diff --git a/doc/help.txt b/doc/help.txt
index c0cc0ac..6a02e1c 100644
--- a/doc/help.txt
+++ b/doc/help.txt
@@ -9,8 +9,8 @@ Global Commands
 
 Project-Level Commands
 
-    platform [add|remove|ls [name]] ... adds or removes a platform, or lists all currently-added platforms
-    plugin [add|remove|ls [path]] ..... adds or removes a plugin (from the specified path), or lists all currently-added plugins
+    platform(s) [add|remove|ls [name]] ... adds or removes a platform, or lists all currently-added platforms
+    plugini(s) [add|remove|ls [path]] ..... adds or removes a plugin (from the specified path), or lists all currently-added plugins
     build ............................. builds a cordova project
     emulate ........................... starts emulator for cordova project
     serve <platform> [port] ........... runs a local web server for the www/ directory of the given platform