Open unional opened 2 years ago
inquirer's choice question support this short value. Is it possible to use that as the input when doing it through command line?
inquirer
choice
short
for example:
export default function (plop) { plop.setGenerator('test', { description: 'blah', prompts: [{ type: 'list', name: 'where', message: 'something', choices: [{ name: 'some name that can be quite long', short: 'blah', value: 'some-value' }, { name: 'another very long name', short: 'blah2', value: 'some-value2' }] }] }) }
can invoke this with: plop blah2
plop blah2
https://www.npmjs.com/package/inquirer#questions
inquirer
'schoice
question support thisshort
value. Is it possible to use that as the input when doing it through command line?for example:
can invoke this with:
plop blah2
https://www.npmjs.com/package/inquirer#questions