Skip to main content

Module teardown

Module teardown 

Source
Expand description

grex teardown — drive the M5-2b pack-type teardown lifecycle.

Thin CLI glue mirroring crate::cli::verbs::sync. Walks the pack tree, then invokes grex_core::sync::teardown which dispatches PackTypePlugin::teardown on every pack in reverse post-order.

Exit codes are shared with sync (1 validation, 2 exec, 3 tree). See crates/grex/src/cli/verbs/sync.rs for the rationale — the teardown verb reuses the same halted-context renderer so operators see a consistent post-mortem regardless of which lifecycle halted.

Functions§

run
Entry point for the teardown verb.