cli/pkg
Snider f9ed8bab2e 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
..
agentic fix(agentic): use context.TODO instead of nil Context (#94) 2026-02-01 15:58:26 +00:00
ai feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
build feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
cache refactor: flatten CLI to root, simplify pkg/mcp for CLI-only use 2026-01-29 18:13:51 +00:00
ci feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
cli feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
container feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
dev feat(dev): add confirmation prompt to apply command (#96) 2026-02-01 16:06:04 +00:00
devops fix(test): use manual cleanup for TestDevOps_Boot_Good_Success 2026-02-01 11:55:10 +00:00
docs feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
doctor refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
errors feat(pkg): add standalone log and errors packages 2026-01-30 22:02:40 +00:00
framework fix(core): add thread-safety to global Core instance (#95) 2026-02-01 16:03:44 +00:00
git feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
gitcmd feat(ci): add core setup ci and dogfood CLI in workflows 2026-02-01 11:36:59 +00:00
go feat(ci): add core setup ci and dogfood CLI in workflows 2026-02-01 11:36:59 +00:00
i18n feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
log feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
mcp feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
monitor feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
php feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
pkgcmd feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
process feat(process): add Logger interface for exec wrapper (#93) 2026-02-01 15:55:26 +00:00
qa feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
release feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
repos feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
sdk feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
security feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
setup feat(ci): add core setup ci and dogfood CLI in workflows 2026-02-01 11:36:59 +00:00
test feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
updater style(update): fix trailing newline in cmd.go 2026-02-01 12:46:17 +00:00
vm feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
workspace feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00