You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2013/07/11 22:29:18 UTC

[11/22] git commit: adding actions

adding actions


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

Branch: refs/heads/plugman-registry
Commit: 272c7c52c5cbc12b60fd508299d64ff034f743e8
Parents: 59c684a
Author: Anis Kadri <an...@gmail.com>
Authored: Tue Jun 11 18:07:56 2013 -0700
Committer: Anis Kadri <an...@apache.org>
Committed: Thu Jul 11 13:08:48 2013 -0700

----------------------------------------------------------------------
 main.js | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/272c7c52/main.js
----------------------------------------------------------------------
diff --git a/main.js b/main.js
index 28a3358..3af9d98 100755
--- a/main.js
+++ b/main.js
@@ -24,6 +24,7 @@ var path = require('path')
     , package = require(path.join(__dirname, 'package'))
     , nopt = require('nopt')
     , plugins = require('./src/util/plugins')
+    , registry = require('plugman-registry')
     , plugman = require('./plugman');
 
 var known_opts = { 'platform' : [ 'ios', 'android', 'blackberry10', 'wp7', 'wp8' ]
@@ -31,6 +32,10 @@ var known_opts = { 'platform' : [ 'ios', 'android', 'blackberry10', 'wp7', 'wp8'
             , 'plugin' : [String, path, url]
             , 'install' : Boolean
             , 'uninstall' : Boolean
+            , 'adduser' : Boolean
+            , 'publish' : path
+            , 'unpublish' : path
+            , 'search' : String
             , 'v' : Boolean
             , 'debug' : Boolean
             , 'plugins': path
@@ -69,6 +74,18 @@ else if (!cli_opts.platform || !cli_opts.project || !cli_opts.plugin) {
 else if (cli_opts.uninstall) {
     plugman.uninstall(cli_opts.platform, cli_opts.project, cli_opts.plugin, plugins_dir, { www_dir: cli_opts.www });
 }
+else if (cli_opts.adduser) {
+  // TODO adduser
+}
+else if (cli_opts.publish) {
+  // TODO publish
+}
+else if (cli_opts.unpublish) {
+  // TODO unpublish
+}
+else if (cli_opts.search) {
+  // TODO search
+}
 else {
     var cli_variables = {}
     if (cli_opts.variable) {