Prompts via default values #1551
-
|
Is this correct/incorrect to provide default values via prompts? Args.string({
description: 'Resource ARN:',
required: false, // uses prompt as fallback
default: async () => {
// prompt here
return 'foo'
},
}) |
Beta Was this translation helpful? Give feedback.
Answered by
mdonnalley
Sep 17, 2024
Replies: 1 comment
-
|
@moltar you could do that but it's probably not a great idea since it will trigger the prompt when you run |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
moltar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@moltar you could do that but it's probably not a great idea since it will trigger the prompt when you run
--helpandoclif manifest