@@ -359,7 +359,7 @@ fn write_row_name(mut out: impl Write, s: &str, prefix_len: usize) -> Result<()>
359
359
}
360
360
361
361
/// Write the data for a container image based status.
362
- fn human_render_imagestatus (
362
+ fn human_render_slot (
363
363
mut out : impl Write ,
364
364
slot : Slot ,
365
365
image : & crate :: spec:: ImageStatus ,
@@ -410,7 +410,8 @@ fn human_render_imagestatus(
410
410
Ok ( ( ) )
411
411
}
412
412
413
- fn human_render_ostree ( mut out : impl Write , slot : Slot , ostree_commit : & str ) -> Result < ( ) > {
413
+ /// Output a rendering of a non-container boot entry.
414
+ fn human_render_slot_ostree ( mut out : impl Write , slot : Slot , ostree_commit : & str ) -> Result < ( ) > {
414
415
// TODO consider rendering more ostree stuff here like rpm-ostree status does
415
416
let prefix = match slot {
416
417
Slot :: Staged => " Staged ostree" . into ( ) ,
@@ -438,9 +439,9 @@ fn human_readable_output_booted(mut out: impl Write, host: &Host) -> Result<()>
438
439
writeln ! ( out) ?;
439
440
}
440
441
if let Some ( image) = & host_status. image {
441
- human_render_imagestatus ( & mut out, slot_name, image) ?;
442
+ human_render_slot ( & mut out, slot_name, image) ?;
442
443
} else if let Some ( ostree) = host_status. ostree . as_ref ( ) {
443
- human_render_ostree ( & mut out, slot_name, & ostree. checksum ) ?;
444
+ human_render_slot_ostree ( & mut out, slot_name, & ostree. checksum ) ?;
444
445
} else {
445
446
writeln ! ( out, "Current {slot_name} state is unknown" ) ?;
446
447
}
0 commit comments