add no_uptodate option

This commit is contained in:
Nikolai Rodionov
2023-01-25 13:01:24 +01:00
parent e6e9c7b248
commit 6acf7a4dd1
2 changed files with 16 additions and 4 deletions

View File

@ -16,7 +16,7 @@ pub(crate) struct HelmRepo {
pub(crate) url: String,
}
#[derive(Clone, Serialize, Deserialize)]
#[derive(Clone, Serialize, Deserialize, PartialEq, Eq)]
pub(crate) enum Status {
Uptodate,
Outdated,
@ -42,7 +42,12 @@ pub(crate) struct ExecResult {
}
impl ExecResult {
pub(crate) fn new(name: String, latest_version: String, current_version: String, status: Status) -> Self {
pub(crate) fn new(
name: String,
latest_version: String,
current_version: String,
status: Status,
) -> Self {
Self {
name,
latest_version,