Skip to content

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

Closed
wants to merge 2 commits into from
Closed

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Jul 20, 2014

I did some improvements and fixes in this PR to ensure that all commands and options described in help.txt are working properly.

Fatme added 2 commits July 20, 2014 13:38
* 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
@Fatme
Copy link
Contributor Author

Fatme commented Jul 21, 2014

@tailsu @ligaz

@@ -65,7 +63,7 @@ export class PlatformService implements IPlatformService {
return(() => {
platform = platform.split("@")[0];

this.validatePlatform(platform);
this.validatePlatform(platform, true);
Copy link
Contributor

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)

@ligaz
Copy link

ligaz commented Jul 24, 2014

Should be rebased on master.

@Fatme
Copy link
Contributor Author

Fatme commented Jul 25, 2014

I prefer to cherry pick the commits. It seems that it'll be easier :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants