MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / format_stats

Function format_stats

crates/chat-cli/src/cli/chat/cli/checkpoint.rs:459–473  ·  view source on GitHub ↗
(stats: &FileStats)

Source from the content-addressed store, hash-verified

457}
458
459fn format_stats(stats: &FileStats) -> String {
460 let mut parts = Vec::new();
461
462 if stats.added > 0 {
463 parts.push(format!("+{}", stats.added));
464 }
465 if stats.modified > 0 {
466 parts.push(format!("~{}", stats.modified));
467 }
468 if stats.deleted > 0 {
469 parts.push(format!("-{}", stats.deleted));
470 }
471
472 parts.join(" ")
473}
474
475fn gather_turn_checkpoints(manager: &CheckpointManager) -> Result<Vec<CheckpointDisplay>, eyre::Report> {
476 manager

Callers 2

from_checkpointMethod · 0.85
expand_checkpointFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected