Overview
Add JSON output format support to the purge command (roadmap task 12.12). Part of Phase 2 of the JSON output epic (#348).
The purge command deletes all local data for an environment (data/<env>/, build/<env>/, and the registry entry). Since PurgeCommandHandler::execute() returns (), the JSON output is minimal: environment name + confirmation flag.
Rationale
Lists the directories and files that were removed. Provides a machine-readable record of what was cleaned up, enabling automation to verify successful purge before proceeding.
Specification
See detailed specification: docs/issues/394-add-json-output-to-purge-command.md
(File will be committed and renamed with the real issue number.)
JSON Output Format
{
"environment_name": "my-env",
"purged": true
}
Tasks
Related
Overview
Add JSON output format support to the
purgecommand (roadmap task 12.12). Part of Phase 2 of the JSON output epic (#348).The
purgecommand deletes all local data for an environment (data/<env>/,build/<env>/, and the registry entry). SincePurgeCommandHandler::execute()returns(), the JSON output is minimal: environment name + confirmation flag.Rationale
Lists the directories and files that were removed. Provides a machine-readable record of what was cleaned up, enabling automation to verify successful purge before proceeding.
Specification
See detailed specification: docs/issues/394-add-json-output-to-purge-command.md
(File will be committed and renamed with the real issue number.)
JSON Output Format
{ "environment_name": "my-env", "purged": true }Tasks
PurgeDetailsDataview DTOJsonViewfor purge commandTextView(preserving currentcomplete_workflowoutput)output_format: OutputFormatparameter toexecute()output_formatdocs/user-guide/commands/purge.mdcargo run --bin linter all)Related
docs/roadmap.mdsection 12.12rendercommand (12.11) #392