Default value for @Question #827
Unanswered
simplenotezy
asked this question in
Q&A
Replies: 1 comment
-
You could do something like @QuestionSet({ name: 'task-questions' })
export class TaskQuestions {
@Question({
message: 'What task would you like to execute?',
name: 'task'
})
parseTask(val?: string) {
return val ?? 'dedfault value';
}
} or you could make use of the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to provide default values for the
@Question
?Beta Was this translation helpful? Give feedback.
All reactions