How do I ask a question with a set of predefined answers? #822
Answered
by
simplenotezy
simplenotezy
asked this question in
Q&A
-
I'd like to use the arrow keys to select an arary of pre-defined answers. I see theres '@ChoicesFor()' which I am not sure how to use, as well as @question() having |
Beta Was this translation helpful? Give feedback.
Answered by
simplenotezy
Mar 10, 2023
Replies: 1 comment
-
Ah, I was missing the @Question({
message: 'What task would you like to execute?',
name: 'task',
choices: ['build', 'test', 'lint'],
type: 'list',
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
simplenotezy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah, I was missing the
type
parameter: