-
Notifications
You must be signed in to change notification settings - Fork 1
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!: use zero questions mode by default. #36
Conversation
KuznetsovRoman
commented
Apr 22, 2024
- use zero questions mode by default.
- "-y" argv replaced with "-v" with opposite meaning
- "noQuestions" replaced with "extraQuestions" with opposite meaning
b7e6393
to
93fb3c0
Compare
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 have a typo in your commit message - feat!:
|
||
You can add `-y` or `--yes` argument to launch a tool in *no-questions* mode: | ||
By default, project will be created with zero questions. |
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.
almost zero questions - there may be a question about downloading the npm-package :)
docs/en/create-testplane.md
Outdated
``` | ||
|
||
In this mode you won't be asked questions about desired plugins and packet manager. | ||
|
||
Default packet manager, used with `--yes` argument: `npm` | ||
Default packet manager, used without `--verbose` argument: `npm` | ||
|
||
Default plugins, installed with `--yes` argument: |
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.
here we can remove part installed with
--yes argument
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 will replace it with "without --verbose
argument"
@@ -17,11 +17,11 @@ const argv = yargs(hideBin(process.argv)) | |||
description: "Language, which will be used to write Testplane tests", | |||
choices: ["ts", "js"], | |||
}) | |||
.option("yes", { |
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.
instead of removing this option we can set default value as true
(we have many examples with -y
option)
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.
How would we turn it off then?
You still can use -y
option (as well as -f
, -o
, -o
, -b
, -a
, -r
), it just does nothing
feat!: "-y" argv replaced with "-v" with opposite meaning feat!: "noQuestions" replaced with "extraQuestions" with opposite meaning BREAKING CHANGE: use zero questions mode by default. BREAKING CHANGE: "-y" argv replaced with "-v" with opposite meaning. BREAKING CHANGE: "noQuestions" replaced with "extraQuestions" with opposite meaning.
93fb3c0
to
537617b
Compare