Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14177] CLI: Default to all supported platforms when no --platforms argument is supplied in "ti create"

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-02-28T00:47:52.000+0000
Affected Version/sRelease 3.1.1
Fix Version/s2014 Sprint 04, 2014 Sprint 04 Core, Release 3.2.3, Release 3.3.0
ComponentsCLI
Labelsmodule_titanium, qe-closed-3.2.3, qe-testadded
ReporterTony Lukasavage
AssigneeChris Barber
Created2013-06-11T13:47:11.000+0000
Updated2014-07-24T07:00:30.000+0000

Description

When creating a new titanium project with the CLI with *ti create*, one of the required parameters is a list of supported platforms as specified by the *\-\-platforms* option, or filled in when prompted. In order to make automation of *ti create* easier, it would be ideal if when *\-\-no-prompt* is used that the CLI would automatically use the default listing of platforms, which seems to be all supported platforms. For example, if I do the following:
ti create --id com.testing.myapp --name myapp --workspace-dir . --no-prompt 
I get the following error:
[ERROR] Missing required option "--platforms"
It would be much nicer if instead the default value for platforms was used (the default value that shows up during the prompting process) so that I'm not forced to explicitly list all platforms in my scripting, especially since that list of platforms is dependent on the current TiSDK being used.

Comments

  1. Chris Barber 2014-01-30

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5285 3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5286
  2. Olga Romero 2014-03-24

    Tested and verified the default to all supported platforms. Appcelerator Studio, build: 3.2.3.201403190645 Titanium SDK, build: 3.2.3.v20140324114345 Node.JS Version: v0.10.13 NPM Version: 1.3.2 ├── acs@1.0.14 ├── alloy@1.3.1 ├── npm@1.3.2 ├── titanium@3.2.1 └── titanium-code-processor@1.1.0

JSON Source