-
Notifications
You must be signed in to change notification settings - Fork 16
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
If no command is given show help text; and instructions on sub-help. Include a dev quick start in the README #429
Conversation
…Include a dev quick start in the README
``` | ||
npm install | ||
npm run build | ||
./src/user-entrypoint.mjs |
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.
You can use this without having a build so in this example...build isn't necessary. So depending on what your intent here is, you may need to change this.
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.
Tests require builds (b/c we assert things on the behavior of the prod bundle), so I think it's reasonable to include?
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.
i put this in to make sure your stuff wasn't roont.
Make sense?
Cause my stuff was roont.
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.
i'll add some comments so noone else brain freezes when they read it.
@@ -40,7 +40,7 @@ describe("cli operations", function () { | |||
}); | |||
|
|||
// TODO: this doesn't work because turning on strict mode breaks parsing sub-commands. why? | |||
it("should exit with a helpful message if a non-existant command is provided", async function () { | |||
it("should exit with a helpful message if a non-existent command is provided", async function () { |
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.
oopsie
Ticket(s): FE-6153
Problem
If no command is given we are showing some generic red text.
Solution
Instead just show help, and how to get more detailed help
Result
No weird errors shown.
Out of scope
We should do the same thing for missing sub commands.
Tracking here: https://faunadb.atlassian.net/browse/FE-6154
Testing
Ran the suite.