Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 208e4d1

Browse files
Merge pull request #874 from connorsmith256/feat/add-friendly-name
feat: add friendly name to host table output
2 parents 2b0c1a8 + c418ccd commit 208e4d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ctl/output.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,13 @@ pub(crate) fn hosts_table(hosts: Vec<Host>) -> String {
8484
table.add_row(Row::new(vec![
8585
TableCell::new_with_alignment("Host ID", 1, Alignment::Left),
8686
TableCell::new_with_alignment("Uptime (seconds)", 1, Alignment::Left),
87+
TableCell::new_with_alignment("Friendly name", 1, Alignment::Left),
8788
]));
8889
hosts.iter().for_each(|h| {
8990
table.add_row(Row::new(vec![
9091
TableCell::new_with_alignment(h.id.clone(), 1, Alignment::Left),
9192
TableCell::new_with_alignment(format!("{}", h.uptime_seconds), 1, Alignment::Left),
93+
TableCell::new_with_alignment(h.friendly_name.clone(), 1, Alignment::Left),
9294
]))
9395
});
9496

0 commit comments

Comments
 (0)