Open SamVerschueren opened 7 years ago
@SamVerschueren hey, short
is what is displayed once the question is answered. It might make sense for other UI to ignore this option.
Given [{name: 'foo', value: 'This is a long value', short: 'short val'}]
? Please select one:
> This is a long value
-- press ENTER --
? Please select one: short val
? Next question
@SBoudrias Wow, thanks for the quick reply :)! Yes, it seams we can safely ignore this because the selected answer is not shown as we just continue to the next question.
Currently we only support lists with object values like
{name: 'foo', value: 'bar'}
. PR #49 will add string support as well. But according to the docs of Inquirer.js, we will have to add support for some others as well.So this is what should be done, and what we already have
@SBoudrias Sorry for the interruption but could you explain what that
short
is? When is it shown? For instance if we had a list of one item[{name: 'foo', value: 'bar', short: 'fb'}]
. How does/should that render?// @zuoez02