[TIMOB-19226] Add support for option branches
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-07-24T01:14:25.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.0.0 |
Components | CLI |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2015-07-16T21:45:22.000+0000 |
Updated | 2017-03-16T21:08:38.000+0000 |
Description
There is a need for the Titanium CLI to alter the available options and flags based on another option's value.
Today, we have hard coded support for "platforms". This is bad, but oh well.
\-\-platform
is an SDK level option, however the Titanium CLI itself will prompt for it and loads the platform specific options and flags.
This ticket is to add support for generic option branching.
On a side note, someday \-\-platform
could be changed to use the option branching, but there would need to be special care to make sure the Titanium CLI remains backwards compatible with older SDKs.
PR: https://github.com/appcelerator/titanium/pull/225 As of 7/16/2015, no Titanium SDK utilizes option branching, so you can basically test that I didn't break anything by running
ti build -h
and building any app for any platform. Eventually you'll be able to test this using theti create
command.PR merged.
Closing ticket as fixed.