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
feat: Add Help Command to CLI #64
Merged
pyymenta
merged 12 commits into
pyymenta:master
from
sudiptog81:merge-conflict-resolution-sudipto
Oct 15, 2020
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
108be83
added help command in cli
ish-u 6adfea7
added Help Command in CLI
ish-u c0c4b8c
added Help Command in CLI
ish-u a983818
added instruction to access Help Screen
ish-u a2c9b06
revert dist files
sudiptog81 1224fae
resolving merge conflicts
sudiptog81 8145f6f
feat: add help command
sudiptog81 f46e6fd
Merge conflict resolution with pyymenta/spacecraft-cli (#1)
sudiptog81 735553d
Merge branch 'master' into merge-conflict-resolution-sudipto
sudiptog81 0314087
fix further conflicts
sudiptog81 a8cbf96
Merge branch 'master' into merge-conflict-resolution-sudipto
sudiptog81 390c6bf
fix: update dist after #65 merge
sudiptog81 File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 |
---|---|---|
|
@@ -81,13 +81,35 @@ export default class CLI { | |
process.exit(1); | ||
}, | ||
}); | ||
|
||
this.keyListener.bindEvent({ | ||
keyName: 'h', | ||
handler: function () { | ||
console.log(` | ||
Start => Earth(0, 0) | ||
Goal => Moon(0, 250) | ||
Once Launched, the Ship moves Forward | ||
W -> Increase Forward Speed | ||
S -> Decrease Forward Speed | ||
A -> Move Left | ||
D -> Move Right | ||
Max Speed - 5 speedunit | ||
Min Speed - 1 speedunit (after leaving (0, 0)) | ||
Press H -> Show the Ship Reference Manual | ||
Press CTRL + C to Exit | ||
`); | ||
} | ||
}); | ||
} | ||
|
||
start(): void { | ||
console.log(Welcome); | ||
console.log(Rocket); | ||
|
||
this.output.write('(0, 0) ready for launch\n'); | ||
this.output.write('(0, 0) ready for launch\nPress H to Show Help\n'); | ||
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. 🚀 🚀 🚀 |
||
} | ||
|
||
launch(): void { | ||
|
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.
Awesome 🥇 🥇 🥇