cli/pkg/dev
Snider 4f1c6926b2
feat(dev): add confirmation prompt to apply command (#96)
Add safety confirmation prompt to `core dev apply` before executing
shell commands. This prevents accidental execution of destructive
commands pasted from untrusted sources or generated by AI agents.

Changes:
- Add --yes/-y flag to skip confirmation prompt
- Show warning and require explicit "y" confirmation before execution
- Allow --dry-run to bypass confirmation (no actual execution)
- Use existing cli.Confirm with Required() for mandatory response

Usage:
  core dev apply --command="rm -rf ."     # Prompts for confirmation
  core dev apply --command="..." --yes    # Skips confirmation
  core dev apply --command="..." --dry-run # No execution, no prompt

Closes #81

Co-authored-by: Claude <noreply@anthropic.com>
2026-02-01 16:06:04 +00:00
..
cmd_api.go refactor(plugin): rename plugin files and update command structure 2026-01-31 11:39:19 +00:00
cmd_apply.go feat(dev): add confirmation prompt to apply command (#96) 2026-02-01 16:06:04 +00:00
cmd_bundles.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
cmd_ci.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
cmd_commit.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
cmd_dev.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
cmd_file_sync.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
cmd_health.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
cmd_impact.go refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
cmd_issues.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
cmd_pull.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
cmd_push.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
cmd_reviews.go feat(workspace): implement workspace.yaml support 2026-02-01 02:18:19 +00:00
cmd_sync.go refactor(plugin): rename plugin files and update command structure 2026-01-31 11:39:19 +00:00
cmd_vm.go refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
cmd_work.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
cmd_workflow.go feat(qa,dev): add issues, health, and workflow commands (#67) 2026-02-01 05:20:46 +00:00
cmd_workflow_test.go feat(qa,dev): add issues, health, and workflow commands (#67) 2026-02-01 05:20:46 +00:00
registry.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
service.go feat(workspace): implement workspace.yaml support 2026-02-01 02:18:19 +00:00