refactor: added kind field to GitRepo

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
Christina Sørensen 2023-07-17 11:04:26 +02:00
parent 83d2458b37
commit 8cbff324e7
2 changed files with 2 additions and 0 deletions

View file

@ -111,6 +111,7 @@ pub struct GitRepo {
pub url: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub flags: Option<Vec<RepoFlags>>,
pub kind: Option<RepoKinds>,
}
/// Represents a single operation on a repository

View file

@ -202,6 +202,7 @@ mod config {
path: "/tmp".to_string(),
url: "https://github.com/cafkafk/gg".to_string(),
flags: Some(vec![Clone, Push]),
kind: None,
},
);
}