Closed iamturns closed 5 years ago
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? https://github.com/iamturns/yargs-interactive/pull/1
Very nice work @nanovazquez - all merged!
:tada: This PR is included in version 2.1.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
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.