Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A9F6F200CC2 for ; Tue, 20 Jun 2017 19:46:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A8E37160BCC; Tue, 20 Jun 2017 17:46:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 014F4160BEF for ; Tue, 20 Jun 2017 19:46:42 +0200 (CEST) Received: (qmail 36349 invoked by uid 500); 20 Jun 2017 17:46:42 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 36261 invoked by uid 99); 20 Jun 2017 17:46:41 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jun 2017 17:46:41 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3A300DFE8F; Tue, 20 Jun 2017 17:46:41 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: purplecabbage@apache.org To: commits@cordova.apache.org Date: Tue, 20 Jun 2017 17:46:42 -0000 Message-Id: <1733102ca1134a8ab03a34e2f8d171ca@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/4] cordova-cli git commit: CB-12901: removed .raw from cordova-lib calls archived-at: Tue, 20 Jun 2017 17:46:43 -0000 CB-12901: removed .raw from cordova-lib calls Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/0a420929 Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/0a420929 Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/0a420929 Branch: refs/heads/master Commit: 0a42092971dc8fe2f483bd42c3b9de26fdec677c Parents: 3045614 Author: Steve Gill Authored: Fri Jun 16 14:37:07 2017 -0700 Committer: Jesse MacFadyen Committed: Tue Jun 20 10:46:17 2017 -0700 ---------------------------------------------------------------------- doc/config.txt | 12 ++++++------ src/cli.js | 14 +++++++------- 2 files changed, 13 insertions(+), 13 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0a420929/doc/config.txt ---------------------------------------------------------------------- diff --git a/doc/config.txt b/doc/config.txt index 607452e..018c44f 100644 --- a/doc/config.txt +++ b/doc/config.txt @@ -1,16 +1,16 @@ Synopsis cordova-cli config [options] - + The config command can be used to set, get, delete, edit, and list global cordova options. Options ---set .............................. Sets the config key to the value.If value is omitted, then it sets it to "true". ---get ...................................... Echo the config value to stdout. ---delete ................................... Deletes the key from all configuration files. ---edit ........................................... Opens the config file in an editor. ---ls ............................................. Lists contents of config file. +--set ... Sets the config key to the value. If value is omitted, then it sets it to "true". +--get ........... Echo the config value to stdout. +--delete ........ Deletes the key from all configuration files. +--edit ................ Opens the config file in an editor. +--ls .................. Lists contents of config file. Syntax cordova-cli config set ....... cordova config set autosave true http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0a420929/src/cli.js ---------------------------------------------------------------------- diff --git a/src/cli.js b/src/cli.js index 184a801..a71e16a 100644 --- a/src/cli.js +++ b/src/cli.js @@ -382,16 +382,16 @@ function cli(inputArgs) { // Pass nopt-parsed args to PlatformApi through opts.options opts.options = args; opts.options.argv = unparsedArgs; - if (cmd === 'run' && args.list && cordova.raw.targets) { - return cordova.raw.targets.call(null, opts); + if (cmd === 'run' && args.list && cordova.targets) { + return cordova.targets.call(null, opts); } - return cordova.raw[cmd].call(null, opts); + return cordova[cmd].call(null, opts); } else if (cmd === 'requirements') { // All options without dashes are assumed to be platform names opts.platforms = undashed.slice(1); - return cordova.raw[cmd].call(null, opts.platforms) + return cordova[cmd].call(null, opts.platforms) .then(function(platformChecks) { var someChecksFailed = Object.keys(platformChecks).map(function(platformName) { @@ -425,7 +425,7 @@ function cli(inputArgs) { }); } else if (cmd === 'serve') { var port = undashed[1]; - return cordova.raw.serve(port); + return cordova.serve(port); } else if (cmd === 'create') { return create(undashed,args); } else if (cmd === 'config') { @@ -481,7 +481,7 @@ function cli(inputArgs) { , shrinkwrap: args.shrinkwrap || false , force: args.force || false }; - return cordova.raw[cmd](subcommand, targets, download_opts); + return cordova[cmd](subcommand, targets, download_opts); } } @@ -528,7 +528,7 @@ function create(undashed, args) { cfg.lib = cfg.lib || {}; cfg.lib.www = wwwCfg; } - return cordova.raw.create( undashed[1] // dir to create the project in + return cordova.create( undashed[1] // dir to create the project in , undashed[2] // App id , undashed[3] // App name , cfg --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org