tonylukasavage / triple

REPL for Titanium
MIT License
96 stars 21 forks source link

triple needs to accept options and pass them to titanium CLI #67

Open Sophrinix opened 9 years ago

Sophrinix commented 9 years ago

So I played around with this for a bit more. I needed the pass the following into the app to get it to launch without asking me questions

➜  hi  cd _tmp
➜  _tmp  ls
LICENSE   README    Resources     build     tiapp.xml
➜  _tmp  titanium build --platform=ios --device-id=D2398AAC-083E-46CB-81C7-64A9F278DC4D

Titanium Command-Line Interface, CLI version 3.4.0, Titanium SDK version 3.4.0.GA
Copyright (c) 2012-2014, Appcelerator, Inc.  All Rights Reserved.

Please report bugs to http://jira.appcelerator.org/

... blah blah blah trim a lot of stuff ...

[INFO]  Skipping xcodebuild
[INFO]  Finished building the application in 861ms
[INFO]  Launching iOS Simulator

triple needs to accept arguments and pass them back to Titanium CLI kind of like how Alloy's jake command ended up doing.

tonylukasavage commented 9 years ago

I can work on this as a feature. To be clear though, the issue from your previous issue (#66) occurs even when you invoke titanium directly, right? Meaning it's not specifically a triple issue?

rblalock commented 9 years ago

Yeh if you just do ti build -p ios it will ask you which device ID ... once you select that, it will run.

When I run with --verbose I see that part of the selection, but Triple of course doesn't let me interact with it. I get:

[~/Desktop/test]$ triple --verbose
[launching app]
[ERROR] Missing required option: --device-id <udid>

Available iOS Simulators:
8.1
  6B0380E5-DC74-4A57-A204-1D4EC63BEBEC  iPhone 4s
  928C1B14-C3F9-4A89-AFD4-0D6BF74D907A  iPhone 5
  CD769F39-4515-4B78-9A39-5DC2DD2609F0  iPhone 5s
  19467DA6-0B85-44E9-97C3-533E6FA9E4EB  iPhone 6 Plus
  D6ACEA73-41DD-4485-87FC-03ECB1DC689B  iPhone 6
  41FEAC58-6FDE-47C3-B405-3B6FBAA12382  iPad 2
  2B9348D8-2268-4831-950E-74D2660D10BA  iPad Retina
  B2C1146F-2AB4-4B85-8D10-8011E47711C8  iPad Air
  3ED48B9A-05E0-48EC-87F9-ED8A7D527D78  Resizable iPhone
  44C94105-85BB-4D2A-9E25-2FD6B31D959D  Resizable iPad

For help, run: titanium help build

[ERROR] Missing required option: --device-id <udid>