mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-12 23:23:48 -05:00
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -355,7 +355,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cup"
|
name = "cup"
|
||||||
version = "3.2.1"
|
version = "3.2.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bollard",
|
"bollard",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
|||||||
@@ -124,11 +124,11 @@ pub fn print_updates(updates: &[Update], icons: &bool) {
|
|||||||
Status::Unknown(_) => "\x1b[90m",
|
Status::Unknown(_) => "\x1b[90m",
|
||||||
};
|
};
|
||||||
let description = format!(
|
let description = format!(
|
||||||
"{} {}",
|
"{}{}",
|
||||||
status,
|
status,
|
||||||
match &update.result.info {
|
match &update.result.info {
|
||||||
UpdateInfo::Version(info) => {
|
UpdateInfo::Version(info) => {
|
||||||
format!("({} → {})", info.current_version, info.new_version)
|
format!(" ({} → {})", info.current_version, info.new_version)
|
||||||
}
|
}
|
||||||
_ => String::new(),
|
_ => String::new(),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user