mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-16 09:03:46 -05:00
Serialize current and local values to avoid having to recompute them when fetching API data. Also fixes the bug where the versions aren't displayed in the CLI output for remote servers
This commit is contained in:
@@ -37,9 +37,7 @@ pub enum UpdateInfo {
|
||||
pub struct VersionUpdateInfo {
|
||||
pub version_update_type: String,
|
||||
pub new_tag: String,
|
||||
#[serde(skip_serializing, skip_deserializing)]
|
||||
pub current_version: String,
|
||||
#[serde(skip_serializing, skip_deserializing)]
|
||||
pub new_version: String,
|
||||
}
|
||||
|
||||
|
||||
@@ -33,6 +33,8 @@ interface VersionInfo {
|
||||
type: "version";
|
||||
version_update_type: "major" | "minor" | "patch";
|
||||
new_tag: string;
|
||||
current_version: string;
|
||||
new_version: string;
|
||||
}
|
||||
|
||||
interface DigestInfo {
|
||||
|
||||
Reference in New Issue
Block a user