mirror of
https://github.com/go-task/task.git
synced 2026-07-09 20:09:14 +02: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
85.2%
Vue
4.5%
Shell
4.4%
TypeScript
4.1%
PowerShell
1.3%
Other
0.5%