Skip to content

Commit 0019619

Browse files
committed
status: print if soft-reboot capable on --verbose
1 parent 81ed850 commit 0019619

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

crates/lib/src/status.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,10 @@ fn human_render_slot(
467467
}
468468
}
469469
}
470+
471+
// Show soft-reboot capability
472+
write_row_name(&mut out, "Soft-reboot capable", prefix_len)?;
473+
writeln!(out, "{}", if entry.soft_reboot_capable { "yes" } else { "no" })?;
470474
}
471475

472476
tracing::debug!("pinned={}", entry.pinned);
@@ -504,6 +508,10 @@ fn human_render_slot_ostree(
504508
if let Some(ostree) = &entry.ostree {
505509
render_verbose_ostree_info(&mut out, ostree, slot, prefix_len)?;
506510
}
511+
512+
// Show soft-reboot capability
513+
write_row_name(&mut out, "Soft-reboot capable", prefix_len)?;
514+
writeln!(out, "{}", if entry.soft_reboot_capable { "yes" } else { "no" })?;
507515
}
508516

509517
tracing::debug!("pinned={}", entry.pinned);
@@ -725,5 +733,6 @@ mod tests {
725733
assert!(w.contains("Deploy serial:"));
726734
assert!(w.contains("Staged:"));
727735
assert!(w.contains("Commit:"));
736+
assert!(w.contains("Soft-reboot capable:"));
728737
}
729738
}

0 commit comments

Comments
 (0)