-
Notifications
You must be signed in to change notification settings - Fork 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
New prompt option: if-no-arg
#17
Conversation
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.
Some minor changes in the docs/comments + a change to pass the linter check.
Co-Authored-By: iamturns <matt@iamturns.com>
Co-Authored-By: iamturns <matt@iamturns.com>
Co-Authored-By: iamturns <matt@iamturns.com>
Hey @iamturns, this PR to your branch adds tests for this new prompt value, increasing the coverage. Could you please take a look and merge it? iamturns#1 |
Very nice work @nanovazquez - all merged! |
🎉 This PR is included in version 2.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This PR introduces a new option prompt:
if-no-arg
.It's useful when you want to provide a default value for a prompt, but don't want to prompt if the argument is provided.
Example
If
--install-dependencies
argument is not provided, the question is prompted with a default value oftrue
.If
--install-dependencies
argument is provided, the question is not prompted.