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 e40d5f5 commit a72f0d9
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 a72f0d9

Please sign in to comment.