Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BA15310FA4 for ; Sun, 28 Jul 2013 00:55:25 +0000 (UTC) Received: (qmail 86261 invoked by uid 500); 28 Jul 2013 00:55:25 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 86197 invoked by uid 500); 28 Jul 2013 00:55:25 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 85792 invoked by uid 99); 28 Jul 2013 00:55:24 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Jul 2013 00:55:24 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 43089F8AD; Sun, 28 Jul 2013 00:55:24 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: anis@apache.org To: commits@cordova.apache.org Date: Sun, 28 Jul 2013 00:55:35 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [13/50] 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/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/master Commit: c1ac946bd8045b0d9e6ea743c6c93bdbd8d1e170 Parents: b421b7b Author: Anis Kadri Authored: Tue Jun 11 18:07:56 2013 -0700 Committer: Anis Kadri 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) {