Summary
Add a purge command that removes local data for environments in any state, with proper confirmation to prevent accidental data loss.
Specification
See detailed specification: docs/issues/322-add-purge-command-to-remove-local-data.md
Goals
Implementation Plan
Phase 1: Domain Model & Application Layer (2-3 hours)
Phase 2: Integration & Testing (1-2 hours)
Phase 3: User Experience Enhancements (1 hour)
Acceptance Criteria
Related
Note for Contributors: These criteria define what the PR reviewer will check. Use this as your pre-review checklist before submitting the PR to minimize back-and-forth iterations.
Summary
Add a
purgecommand that removes local data for environments in any state, with proper confirmation to prevent accidental data loss.Specification
See detailed specification: docs/issues/322-add-purge-command-to-remove-local-data.md
Goals
--forceflagImplementation Plan
Phase 1: Domain Model & Application Layer (2-3 hours)
purgecommand to domain modelPurgeCommandinsrc/application/command_handlers/purge/PurgeStepthat removes local directories--forceflag in CLI argumentsPhase 2: Integration & Testing (1-2 hours)
purgesubcommand to CLItests/e2e/purge_command.rs(modeled afterdestroy_command.rs)Phase 3: User Experience Enhancements (1 hour)
destroycommand output with purge hintAcceptance Criteria
purgecommand removes bothdata/{env-name}/andbuild/{env-name}/directories--forceflag skips confirmationdestroycommand output hints aboutpurge./scripts/pre-commit.shdocs/user-guide/commands/Related
Note for Contributors: These criteria define what the PR reviewer will check. Use this as your pre-review checklist before submitting the PR to minimize back-and-forth iterations.