m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-16 17:13:46 -05:00

Update API and improve CLI output

This commit is contained in:
Sergio
2025-02-14 18:28:18 +02:00
parent 2262df0355
commit 6ae95bf83b
6 changed files with 163 additions and 31 deletions

View File

@@ -163,10 +163,13 @@ impl Image {
_ => unreachable!(),
}
.to_string(),
new_version: format_str
new_tag: format_str
.replacen("{}", &new_tag.major.to_string(), 1)
.replacen("{}", &new_tag.minor.unwrap_or(0).to_string(), 1)
.replacen("{}", &new_tag.patch.unwrap_or(0).to_string(), 1),
// Throwing these in, because they're useful for the CLI output, however we won't (de)serialize them
current_version: self.version_info.as_ref().unwrap().current_tag.to_string(),
new_version: self.version_info.as_ref().unwrap().latest_remote_tag.as_ref().unwrap().to_string()
})
}
"digest" => {