MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / fmt

Method fmt

atomic-cli/src/commands/git/guard.rs:49–63  ·  view source on GitHub ↗
(&self, formatter: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

47
48impl std::fmt::Display for GuardOperation {
49 fn fmt(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
50 formatter.write_str(match self {
51 Self::Status => "status",
52 Self::Diff => "diff",
53 Self::Record => "record",
54 Self::Add => "add",
55 Self::Materialize => "materialize",
56 Self::ViewSwitch => "view switch",
57 Self::AgentTurnEnd => "agent turn-end",
58 Self::AgentSessionEnd => "agent session-end",
59 Self::ForensicStatus => "status --no-reconcile",
60 Self::HistoryOnlyDiff => "history-only diff",
61 Self::ShimBootstrap => "shim bootstrap/reconcile",
62 })
63 }
64}
65
66/// Optional protection to perform only after the guard has decided to refuse.

Callers

nothing calls this directly

Calls 1

write_evidenceFunction · 0.85

Tested by

no test coverage detected