cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [26/43] git commit: adding actions
Date Thu, 11 Jul 2013 21:50:26 GMT
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/c1ac946b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/c1ac946b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/c1ac946b

Branch: refs/heads/plugman-registry
Commit: c1ac946bd8045b0d9e6ea743c6c93bdbd8d1e170
Parents: b421b7b
Author: Anis Kadri <anis.kadri@gmail.com>
Authored: Tue Jun 11 18:07:56 2013 -0700
Committer: Anis Kadri <anis@apache.org>
Committed: Thu Jul 11 13:33:03 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/c1ac946b/main.js
----------------------------------------------------------------------
diff --git a/main.js b/main.js
index 262c264..2c2dd92 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
@@ -76,6 +81,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) {


Mime
View raw message