Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 336479AA8 for ; Tue, 16 Dec 2014 15:26:21 +0000 (UTC) Received: (qmail 6274 invoked by uid 500); 16 Dec 2014 15:26:20 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 6233 invoked by uid 500); 16 Dec 2014 15:26:20 -0000 Mailing-List: contact dev-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 dev@cordova.apache.org Received: (qmail 6220 invoked by uid 99); 16 Dec 2014 15:26:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2014 15:26:19 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of agrieve@google.com designates 209.85.214.179 as permitted sender) Received: from [209.85.214.179] (HELO mail-ob0-f179.google.com) (209.85.214.179) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2014 15:26:15 +0000 Received: by mail-ob0-f179.google.com with SMTP id va2so23526274obc.10 for ; Tue, 16 Dec 2014 07:23:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=snQZHPgoGN9IohgMk6UTgyam+GN5jDaxfZ7eSxezanQ=; b=HQFDZzbxkAjtP1fkD+nWsL3+m4K9jvi+RUOwaD1wuEnhgrJu//mBdaJsVcNHWU6r6Q AX/MMtX37RBWbelOJZ+dm2m7crwSs8ur9xH4Mp4AlR/YNY3laDD3wZoeI+un15RG+gPF icweTbuJKVP+5rChXu8HZA2CXacxAEH1k+pd7cf/1tWGkkfFRvphSJ1sqyPlv+VA6vx+ rAvGsTwKno7VkdFidGeJ+ziTODlTHh7EwCVCe6LCk+fhIXMyQB32QeiCMMPM2/wi7fsx cxAzFqwSNPbGUC4Kc2bYrwdAvfd2Q6Ychv1Qeiy21PzSPigYiebs/7+mlnaygWwULiN5 wzDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=snQZHPgoGN9IohgMk6UTgyam+GN5jDaxfZ7eSxezanQ=; b=mt8gfTJK5cY0uhMy4+T1ETuAhObzgvlOJ2QALjVHmkojBKDw4klBlVHAPDcjgC5ULy 1ZFm0irKjCoJeYizcmuRqtDxz7ocW2FCpVkGenlUIoFMtbsmw+3bTKZBCnzOL5WdT9Zn WjaCGyX9ZWk4CiJdLhVsFkwl2AA/GTwU1Ski4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-type; bh=snQZHPgoGN9IohgMk6UTgyam+GN5jDaxfZ7eSxezanQ=; b=G+sLB1QpIbw6CcoGGQ/iHZ7BKmLqunI0w/SDDx3KtvGTzmAgU0a2uxTF1h+YgGKXCS wmhYKPVr70Eovy0NhGd6cQ6NU8o34pajdM9Xijz3QW2+mO/OftSaodL609TxvGO3xT5D 3PTZsAfHCVueEhDK9QwtwQXMCrnQTXO489he8bqz8Z2KqFIppJGY/ADAwHYyhkD+rWLy J3a36dDNU6zPgWHzdjnvcZGP2ADRMQfcAjW/A5nvl4VwSEA/cnf+He4qbHbk6zRK72kZ BqgFsmMJrzEbY9MHyFOppOPkRa/55m7DUPA3M/UYhwHzOC+4hNgYeB841QK/O7cuu7ei MxwA== X-Gm-Message-State: ALoCoQkhhQxm7+Kcglo3+WrQ9RrLcxBqUXAy9YsFLSNIhCYVMrquvihVQzs8pon0IC+FnBmcN+ST X-Received: by 10.182.33.138 with SMTP id r10mr22771513obi.67.1418743420227; Tue, 16 Dec 2014 07:23:40 -0800 (PST) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.182.222.106 with HTTP; Tue, 16 Dec 2014 07:23:20 -0800 (PST) In-Reply-To: References: From: Andrew Grieve Date: Tue, 16 Dec 2014 10:23:20 -0500 X-Google-Sender-Auth: 2T-1ceiJ5zZgJYVuvVAJJYp471k Message-ID: Subject: Re: --list argument for CLI To: dev Content-Type: multipart/alternative; boundary=001a11c2cb9a973918050a56f1ac X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2cb9a973918050a56f1ac Content-Type: text/plain; charset=UTF-8 Sounds great! On Tue, Dec 16, 2014 at 4:55 AM, Jesse wrote: > > Yes to all of this, and welcome aboard! > > Cheers, > Jesse > > > On Dec 15, 2014, at 3:22 PM, Murat Sutunc wrote: > > > > Hi all, > > My name is Murat Sutunc, I'm part of the Visual Studio team @ Microsoft > and new to Cordova. > > > > I was looking at the Cordova Tooling Wiki at ( > https://wiki.apache.org/cordova/CommandLineToolingDesign) and thought it > would be interesting to make some additions to the list-devices feature. > Currently we have list-devices and list-emulator-images scripts for a lot > of different platforms. However these scripts are not easily accessible > from the Cordova CLI. By introducing an additional argument to the run or > emulate command, we could show a list of available emulators or connected > devices. (I would like to deemphasize the fact that the command is called > --list). After invoking the command, a user can decide which target to use > and run the app on the desired target by using cordova run -device > devicename > > > > Here's how it looks for an Android only project: > > C:\dev\cordova-projects\hello>cordova run --list > > Running command: > C:\dev\cordova-projects\hello\platforms\android\cordova\run.bat --list > > Available Android Virtual Devices: > > AVD_GalaxyNexus_ToolsForApacheCordova > > Available Android Devices: > > > > (Internally what happens here is, through run.js we will call android > list and adb devices and pipe that list to the user. Similar process with > iOS too.) > > > > Note that in case a platform doesn't support --list flag, it'll ignore > the flag and run as if the flag is not provided. This is due to current > args parsing logic in platforms. Is this ok for the short term? I would > hope that more platforms would support this option in the future. > > > > Below are the pull requests for cordova-cli and > cordova-android/cordova-ios that have this functionality implemented. I > would like to hear your thoughts on this design, choice of the flag and if > you think this feature would be a valuable addition to the CLI. > > > > cordova-cli: https://github.com/apache/cordova-cli/pull/199 > > cordova-android: https://github.com/apache/cordova-android/pull/139 > > cordova-ios: https://github.com/apache/cordova-ios/pull/122 > > > > PS: My ICLA just got approved. You can also ping me anytime on #cordova, > my name on irc is muratsu. > > > > Thanks! > > -Murat > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org > For additional commands, e-mail: dev-help@cordova.apache.org > > --001a11c2cb9a973918050a56f1ac--