From c2a6dcb6bd98ae8060ef839d403bfd764047bdfa Mon Sep 17 00:00:00 2001 From: Murat Sutunc Date: Mon, 29 Dec 2014 11:43:46 -0800 Subject: [PATCH] CB-8168 Add support for `cordova/run --list` (closes #139) --- bin/templates/cordova/lib/run.js | 33 +++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/bin/templates/cordova/lib/run.js b/bin/templates/cordova/lib/run.js index 024fcd08..12f178ce 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