Skip to content

Commit

Permalink
feat: validate user input
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Jun 4, 2020
1 parent 3e02d12 commit 19e823d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/webpack-cli/lib/utils/cli-executer.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ async function prompter() {
message: `Enter value of the ${selection} flag`,
initial: options.defaultValue,
result: (value) => [selection, value],
validate: (value) => Boolean(value),
});
questions.push(valuePrompt);
});
Expand Down

0 comments on commit 19e823d

Please sign in to comment.