Skip to main content

Module manage

Module manage 

Source
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, unprotect subcommands.
compact
compact subcommand for the management CLI (issue #67, Phase 5 of #52).
doctor
doctor analyzer + fixers.
gc
gc subcommand for the management CLI (issue #66, Phase 5 of #52).

Structs§

DialoguerPrompter
Default Prompter backed by the dialoguer crate.

Enums§

ManageError
Errors surfaced by the management surface.
StaleReason
Why a ManageError::StaleSnapshot was 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.

Traits§

Prompter
Interactive UI surface used by doctor and branch.