[TIMOB-13079] CLI: ti prompt - setting cli.prompt via "ti config cli.prompt false" or "ti setup -a" returns success but does not change the setting
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-08-02T23:18:55.000+0000 |
Affected Version/s | Release 3.0.2, Release 3.1.0 |
Fix Version/s | 2013 Sprint 16, 2013 Sprint 16 Core, Release 3.2.0 |
Components | CLI |
Labels | qe-3.1.0 |
Reporter | Eric Merriman |
Assignee | Chris Barber |
Created | 2013-03-15T17:37:05.000+0000 |
Updated | 2013-11-18T18:28:58.000+0000 |
Description
If a user goes through the advanced config setup "ti setup -a", they are prompted for the "prompt" setting. This setting is not made correctly, and the value remains unchanged. If the user later attempts to set the value using "ti config cli.prompt true" then a success message is returned, but the setting is not made. This leaves the only option for setting cli.quiet is to pass in the flag with each command.
This is not a regression, occurs with 3.0.24 and 3.0.25
Steps to reproduce:
1) Check setting of cli.prompt with "ti config"
2) Attempt to set with "ti config cli.prompt true"
3) Verify setting with "ti config"
4) Now attempt to set with "ti setup -a" and look for "Would you like to be prompted for missing options and arguments?" - answer "false"
5) Check results with "ti config"
Result:
Output:
emerrimanMBP:droidIos emerriman$ ti config cli.prompt true
cli.prompt saved
The setting remains unchanged regardless of how you try to set it
Expected:
The value is "true"
https://github.com/appcelerator/titanium/pull/50 https://github.com/appcelerator/node-appc/pull/50
Verified fixed on: Mac OSX 10.9 Mavericks Titanium Studio, build: 3.2.0.201311160316 Titanium SDK, build: 3.2.0.v20131117001643 CLI: 3.2.0-alpha Alloy: 1.3.0 Setting is successfully changed after using "ti config cli.prompt true". "ti setup -a" returns that the setting change was successful. Closing.