Confirmation Prompts
prompt asks for confirmation before a task runs. It is meant for tasks with side effects that are hard to undo.
## deploy
```meta
prompt = "Deploy to production?"
```
```bash
./deploy.sh
```
$ mq-task deploy
? Deploy to production? [y/N] y
yoryes(any case) confirms; anything else, including end of input, declines and fails the task with exit code1.--yes/-yanswers yes to every prompt, for scripts and CI.echo y | mq-task deployworks too.- The question is asked after the task's
ifand up-to-date checks, so a skipped task never prompts. - A looped task is confirmed once, not once per item.
--dry-runprints the prompt instead of asking.- Prompts need the terminal, so they cannot be asked in parallel runs, with
--output prefixedorgroup, or inside the TUI: those fail with a message asking for--yes. In the TUI, pressxto run the task in the terminal instead.