m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-13 07:33:48 -05:00

fix: misaligned table columns in CLI

Reported in #85
This commit is contained in:
Sergio
2025-04-04 16:08:33 +03:00
parent e4a07f9810
commit 674bc3d614
2 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@@ -355,7 +355,7 @@ dependencies = [
[[package]]
name = "cup"
version = "3.2.1"
version = "3.2.2"
dependencies = [
"bollard",
"chrono",

View File

@@ -124,11 +124,11 @@ pub fn print_updates(updates: &[Update], icons: &bool) {
Status::Unknown(_) => "\x1b[90m",
};
let description = format!(
"{} {}",
"{}{}",
status,
match &update.result.info {
UpdateInfo::Version(info) => {
format!("({}{})", info.current_version, info.new_version)
format!(" ({}{})", info.current_version, info.new_version)
}
_ => String::new(),
}