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 67C6C10EDE for ; Fri, 16 Jan 2015 21:32:44 +0000 (UTC) Received: (qmail 97071 invoked by uid 500); 16 Jan 2015 21:32:46 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 96948 invoked by uid 500); 16 Jan 2015 21:32:46 -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 96760 invoked by uid 99); 16 Jan 2015 21:32:46 -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; Fri, 16 Jan 2015 21:32:46 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6030BE080E; Fri, 16 Jan 2015 21:32:45 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: naika@apache.org To: commits@cordova.apache.org Date: Fri, 16 Jan 2015 21:32:56 -0000 Message-Id: <60fb8fe555e440948f1369b002bf22b6@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [12/12] cordova-amazon-fireos git commit: CB-8168 Add support for `cordova/run --list` (closes #139) CB-8168 Add support for `cordova/run --list` (closes #139) Project: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/commit/1bbac72c Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/1bbac72c Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/1bbac72c Branch: refs/heads/master Commit: 1bbac72c8daa3161cc671daac34d6b34247260f3 Parents: 98b1f97 Author: Murat Sutunc Authored: Mon Dec 29 11:43:46 2014 -0800 Committer: Ajitha Committed: Mon Jan 5 06:57:10 2015 +0000 ---------------------------------------------------------------------- bin/templates/cordova/lib/run.js | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/1bbac72c/bin/templates/cordova/lib/run.js ---------------------------------------------------------------------- diff --git a/bin/templates/cordova/lib/run.js b/bin/templates/cordova/lib/run.js index 024fcd0..12f178c 100644 --- a/bin/templates/cordova/lib/run.js +++ b/bin/templates/cordova/lib/run.js @@ -23,11 +23,12 @@ var path = require('path'), build = require('./build'), emulator = require('./emulator'), device = require('./device'), + shell = require('shelljs'), Q = require('q'); /* * Runs the application on a device if available. - * If not device is found, it will use a started emulator. + * If no device is found, it will use a started emulator. * If no started emulators are found it will attempt to start an avd. * If no avds are found it will error out. * Returns a promise. @@ -35,6 +36,7 @@ var path = require('path'), module.exports.run = function(args) { var buildFlags = []; var install_target; + var list = false; for (var i=2; i