()
| 110 | // Using `inquirer`'s `number` function instead of `input` would be nice but it doesn't allow |
| 111 | // us to accept `?` for help text. |
| 112 | const prompt = async (): Promise<string | undefined> => await input({ |
| 113 | message: options.helpText ? `${message} (? for help)` : message, |
| 114 | transformer: displayNoneForEmpty, |
| 115 | validate, |
| 116 | default: (typeof options.default === 'function' ? options.default() : options.default)?.toString(), |
| 117 | required: options.required, |
| 118 | }) |
| 119 | |
| 120 | let entered = await prompt() |
| 121 | while (options.helpText && entered === '?') { |
no outgoing calls
no test coverage detected