Skip to content

Commit e2fe216

Browse files
foharaclaude
andcommitted
feat: Add waived count to status summary output
The text output of `lash status` now includes waived task count and percentage alongside open, done, and blocked in the summary line. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7891d60 commit e2fe216

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

‎crates/lash-cli/src/commands/status.rs‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,17 @@ fn output_text(
445445
0
446446
};
447447

448+
#[allow(
449+
clippy::cast_precision_loss,
450+
clippy::cast_possible_truncation,
451+
clippy::cast_sign_loss
452+
)]
453+
let waived_pct = if counts.total > 0 {
454+
(counts.waived as f64 / counts.total as f64 * 100.0) as u32
455+
} else {
456+
0
457+
};
458+
448459
#[allow(
449460
clippy::cast_precision_loss,
450461
clippy::cast_possible_truncation,
@@ -459,14 +470,14 @@ fn output_text(
459470
if let Some(t) = theme {
460471
println!("{}", t.style_label("Summary"));
461472
println!(
462-
" Total: {} | Open: {} ({open_pct}%) | Done: {} ({done_pct}%) | Blocked: {} ({blocked_pct}%)",
463-
counts.total, counts.open, counts.done, counts.blocked
473+
" Total: {} | Open: {} ({open_pct}%) | Done: {} ({done_pct}%) | Waived: {} ({waived_pct}%) | Blocked: {} ({blocked_pct}%)",
474+
counts.total, counts.open, counts.done, counts.waived, counts.blocked
464475
);
465476
} else {
466477
println!("Summary");
467478
println!(
468-
" Total: {} | Open: {} ({open_pct}%) | Done: {} ({done_pct}%) | Blocked: {} ({blocked_pct}%)",
469-
counts.total, counts.open, counts.done, counts.blocked
479+
" Total: {} | Open: {} ({open_pct}%) | Done: {} ({done_pct}%) | Waived: {} ({waived_pct}%) | Blocked: {} ({blocked_pct}%)",
480+
counts.total, counts.open, counts.done, counts.waived, counts.blocked
470481
);
471482
}
472483
}

0 commit comments

Comments
 (0)