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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add Help Command to CLI #64
feat: Add Help Command to CLI #64
Conversation
* Create .eslintignore * dist folder added to eslintignore * added code coverage and ci config * fix lint issues * remove unnecessary import * fix lint issues * fix rocket on init * Our rocket is back in your initialization * revert dist files * feat: add help command Co-authored-by: Mayank Choudhary <7mayankchoudhary7@gmail.com> Co-authored-by: Guilherme Orcezi <guilhermeorcezi@gmail.com> Co-authored-by: Lucas <lucas.pimenta94@outlook.com>
Codecov Report
@@ Coverage Diff @@
## master #64 +/- ##
==========================================
- Coverage 34.42% 33.87% -0.56%
==========================================
Files 8 8
Lines 122 124 +2
Branches 17 17
==========================================
Hits 42 42
- Misses 79 81 +2
Partials 1 1
Continue to review full report at Codecov.
|
@sudiptog81 Thank you about your contribution and your engagement to help. That's a good plan! Thank you! |
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 | ||
`); | ||
} | ||
}); |
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 馃 馃 馃
} | ||
|
||
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 comment
The reason will be displayed to describe this comment to others. Learn more.
馃殌 馃殌 馃殌
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.
Looks good to me @sudiptog81
Thank you so much!
CHANGELOG 馃摑
Only to be used in case merge resolution fails. I'll close this in case #60 succeeds.