task/taskfile
Valentin Maerten 93cdccefce
feat(cmd): add ask option to commands
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.
2026-01-29 19:02:44 +01:00
..
ast feat(cmd): add ask option to commands 2026-01-29 19:02:44 +01:00
templates fix: a couple of fixes and improvements on task --init (#2433) 2025-12-07 20:29:51 +00:00
themes feat: decoding improvements (#2068) 2025-02-22 15:44:22 +00:00
dotenv.go fix: special variable type errors in vars with no task context (#2107) 2025-03-10 11:46:07 +00:00
node.go feat: support self-signed certificates for remote taskfiles (#2537) 2026-01-25 18:51:30 +01:00
node_base.go feat: support self-signed certificates for remote taskfiles (#2537) 2026-01-25 18:51:30 +01:00
node_cache.go feat: redact credentials in remote urls (#2220) 2025-05-24 13:38:18 +01:00
node_file.go fix: a couple of fixes and improvements on task --init (#2433) 2025-12-07 20:29:51 +00:00
node_git.go fix: remote git taskfile cloning and directory includes (#2602) 2026-01-14 19:43:39 +01:00
node_git_test.go fix: remote git taskfile cloning and directory includes (#2602) 2026-01-14 19:43:39 +01:00
node_http.go feat: support self-signed certificates for remote taskfiles (#2537) 2026-01-25 18:51:30 +01:00
node_http_test.go feat: support self-signed certificates for remote taskfiles (#2537) 2026-01-25 18:51:30 +01:00
node_stdin.go fix: properly resolve remote entrypoints (#2438) 2025-10-12 13:29:57 +02:00
node_test.go feat: add parallel test execution to improve runtime (#1882) 2024-12-11 21:47:10 -03:00
reader.go feat: support self-signed certificates for remote taskfiles (#2537) 2026-01-25 18:51:30 +01:00
snippet.go feat: better functional options for reader (#2148) 2025-04-01 14:51:25 +01:00
snippet_test.go feat: better functional options for reader (#2148) 2025-04-01 14:51:25 +01:00
taskfile.go feat: support self-signed certificates for remote taskfiles (#2537) 2026-01-25 18:51:30 +01:00