(&self, status: &SnapshotStatus)
| 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<()> { |
no outgoing calls
no test coverage detected