Expand description
Management CLI: doctor, delete-branch, protect, unprotect.
These commands operate against the same on-bucket object layout as
the helper protocol (bundles under <prefix>/<ref>/, PROTECTED#
markers, lock files).
The library entry points (Doctor, ManageBranch) take an
ObjectStore and a
Prompter, so the binary, mock-backed unit tests, and any future
non-interactive frontend share the same code path.
Re-exports§
pub use crate::protocol::push::DEFAULT_LOCK_TTL_SECONDS;
Modules§
- branch
delete-branch,protect,unprotectsubcommands.- compact
compactsubcommand for the management CLI (issue #67, Phase 5 of #52).- doctor
doctoranalyzer + fixers.- gc
gcsubcommand for the management CLI (issue #66, Phase 5 of #52).
Structs§
- Dialoguer
Prompter - Default
Prompterbacked by thedialoguercrate.
Enums§
- Manage
Error - Errors surfaced by the management surface.
- Stale
Reason - Why a
ManageError::StaleSnapshotwas raised. The re-check that fires immediately before a mutating write can fail in two observably different ways, and both deserve their own operator- facing wording.