mirror of
https://github.com/go-task/task.git
synced 2026-02-24 20:20:30 +01:00
93cdccefcec6d3dffe0ce4cb5de69c75b46745c8
Add an `ask` attribute to commands that shows a y/n confirmation
before executing. If the user declines, the command is skipped but
the task continues with the next command.
Example:
```yaml
cmds:
- cmd: echo "Deploying..."
ask: "Deploy to production?"
- task: run-migrations
ask: "Run database migrations?"
```
Behavior:
- Default: asks for y/n confirmation
- --yes: auto-confirms all asks
- --dry: shows commands without asking
This differs from task-level `prompt:` which cancels the entire task
if declined. Command-level `ask:` only skips the individual command.
Task
Task is a task runner / build tool that aims to be simpler and easier to use than, for example, GNU Make.
Installation | Getting Started | Docs | Twitter | Bluesky | Mastodon | Discord
Gold Sponsors
|
|
|
Languages
Go
88%
Shell
5.1%
TypeScript
2.9%
Vue
1.8%
PowerShell
1.5%
Other
0.6%