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

Method print_snapshot_status

atomic-cli/src/commands/status.rs:369–382  ·  view source on GitHub ↗
(&self, status: &SnapshotStatus)

Source from the content-addressed store, hash-verified

367 }
368
369 fn print_snapshot_status(&self, status: &SnapshotStatus) {
370 if let Some(snapshot) = status.snapshot {
371 println!(
372 "Snapshot: {} ({} superseded retained)",
373 hash(&snapshot.to_base32()[..DEFAULT_HASH_LENGTH]),
374 status.superseded_snapshots
375 );
376 } else if let Some(remainder) = status.remainder {
377 println!(
378 "Snapshot remainder: {}",
379 hash(&remainder.to_base32()[..DEFAULT_HASH_LENGTH])
380 );
381 }
382 }
383
384 /// Print the status in long (human-readable) format.
385 fn print_long_format(&self, status: &RepositoryStatus) -> CliResult<()> {

Callers 2

render_service_statusMethod · 0.80
runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected