-
-
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
Closed
Closed
Help command #8
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule common
updated
8 files
+2 −0 | bootstrap.ts | |
+50 −0 | commands/help.ts | |
+1 −0 | declarations.d.ts | |
+0 −2 | definitions/logger.d.ts | |
+0 −2 | dispatchers.ts | |
+7 −6 | logger.ts | |
+12 −0 | project-helper.ts | |
+5 −4 | services/commands-service.ts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
--[]-- | ||
|
||
Usage: | ||
$ tns <command> [command parameters] [--command <options>] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There should be no tabs in the help file, because every terminal renders tabs differently. |
||
|
||
General commands: | ||
help <command> Shows additional information about the commands in this list. | ||
|
||
create Creates a new NativeScript project with given project name and application identifier. | ||
platform add Creates a new platform specific project. | ||
platform list Lists all available and all installed platforms. | ||
prepare Copies files for specified platform, so that the project is ready to build in platform specific SDK. | ||
build Builds the project for the selected target platform and produces an application package. | ||
run This is shorthand for prepare and build. | ||
|
||
General options: | ||
--help Prints help about the selected command. | ||
--path <Directory> Specifies the directory that contains the project. If not set, the project is searched for | ||
in the current directory and all directories above it. | ||
--version Prints the client version. | ||
--[/]-- | ||
|
||
--[help]-- | ||
|
||
Usage: | ||
$ tns help [<Command>] | ||
Lists the available commands or shows information about the selected command. | ||
<Command> is any of the available commands as listed by $ tns help. | ||
|
||
--[/]-- | ||
|
||
--[create]-- | ||
|
||
Usage: | ||
$ tns create <App name> [--path <Directory>] [--appid <App ID>] [--copy-from <Directory>] | ||
|
||
Creates a new NativeScript project. | ||
<App name> is the name of project. It should conform to platform package type limitations. For example classes in Java | ||
don't begin with numbers. | ||
|
||
Options: | ||
--path - Specifies the directory where you want to create the project, if different from the current directory. | ||
The directory must be empty. | ||
--appid - Sets the application identifier for your project. The application identifier must consist of at least three | ||
alphanumeric strings, separated by a dot (.). Each string must start with a letter. | ||
The application identifier corresponds to the Bundle ID for iOS apps and to the package identifier for Android apps. | ||
If not specified, the application identifier is set to com.telerik.<App name>. | ||
--copy-from - Specifies the directory where your javascript files are located. If not set, | ||
the default hello world template is used. | ||
|
||
--[/]-- | ||
|
||
--[platform]-- | ||
|
||
Usage: | ||
$ tns platform <Command> | ||
|
||
<Command> is a related command that extends the platform command. You can run the following related commands: | ||
list - Lists all available and installed platforms. | ||
add - Creates a new platform specific project | ||
|
||
--[/]-- | ||
|
||
--[platform|list]-- | ||
|
||
Usage: | ||
$ tns platform | ||
|
||
Lists all available and currently installed platforms. | ||
|
||
--[/]-- | ||
|
||
--[platform|add]-- | ||
|
||
Usage: | ||
$ tns platform add <platform> | ||
|
||
Platform-specific usage: | ||
$ tns platform add android | ||
$ tns platform add ios | ||
|
||
Creates a new platform specific project. In this version of Telerik NativeScript you can create only ios and android projects. | ||
You can create Android projects on windows and Mac machine. You can create ios projects only on Mac machine. | ||
--[/]-- | ||
|
||
--[prepare]-- | ||
|
||
Usage: | ||
$ tns prepare [<platform>] | ||
|
||
Platform-specific usage: | ||
$ tns prepare android | ||
$ tns prepare ios | ||
|
||
Copies files for specified platform, so that the project is ready to build in each SDK. | ||
|
||
--[/]-- | ||
|
||
--[build]-- | ||
|
||
Usage: | ||
$ tns build [<platform>] | ||
|
||
Platform-specific usage: | ||
$ tns build android | ||
$ tns build ios | ||
|
||
Builds the project for specified platform. This generates platform-specific code within the project's platforms subdirectory. | ||
|
||
--[/]-- | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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)
andvalidatePlatformInstalled(platform)