task
task copied to clipboard
Multiple prompts
I'd love to be able to give "prompt" an array of prompts.
We have a task that releases to production. Right now we have one prompt that contains multiple questions and checks for the user.
I'd like to split those questions into multiple.
So instead of
version: '3'
tasks:
deploy:production:
desc: Release to prod
prompt: "Do you wish to release to version {{.RELEASE_VERSION}}? Have you remembered to log into harbor today? Have you announced the release on Slack and aligned with team Foo?"
I'd like to do this
version: '3'
tasks:
deploy:production:
desc: Release to prod
prompt:
- Do you wish to release to version {{.RELEASE_VERSION}}?
- Have you remembered to log into harbor today?
- Have you announced the release on Slack?
- Have you aligned with team Foo?
@andreynering I want to contribute to this issue! What do you believe is the best way to go?
Promptcan be a single string or multiple valuesPromptfor one value andpromptsfor multiple values?
Hi @mfbmina,
Contributions are welcome!
Option 1 would better align with our current conventions. Allow a single string or an array of strings on prompt:.
Hey @andreynering!
When you're free, could you look at the PR above?
Thanks 😄