-
-
Notifications
You must be signed in to change notification settings - Fork 197
Help command #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help command #8
Conversation
* Rename bin/nativescript.cmd to tns.cmd * Fix tns --version command * Add appid option * Use com.telerik.<App name> as default application identifier * Add help for --copy-from option * Remove setLoggerConfiguration * Add config.client * Fix the check for "source app/ is not a direct ancestor of a target app/" * We don't need ensureProject, we can throw the error when projectData is initializing. ;) * Fix message outputed from platform command * isPlatformInstalled validation for prepare and build commands
@@ -65,7 +63,7 @@ export class PlatformService implements IPlatformService { | |||
return(() => { | |||
platform = platform.split("@")[0]; | |||
|
|||
this.validatePlatform(platform); | |||
this.validatePlatform(platform, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid boolean method arguments - it's impossible to tell what this switch does without going to the method definition.
http://ariya.ofilabs.com/2011/08/hall-of-api-shame-boolean-trap.html
Maybe a second overload will work best here validatePlatform(platform)
and validatePlatformInstalled(platform)
Should be rebased on master. |
I prefer to cherry pick the commits. It seems that it'll be easier :) |
I did some improvements and fixes in this PR to ensure that all commands and options described in
help.txt
are working properly.