refactor: added kind field to GitRepo
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
parent
83d2458b37
commit
8cbff324e7
2 changed files with 2 additions and 0 deletions
|
@ -111,6 +111,7 @@ pub struct GitRepo {
|
||||||
pub url: String,
|
pub url: String,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub flags: Option<Vec<RepoFlags>>,
|
pub flags: Option<Vec<RepoFlags>>,
|
||||||
|
pub kind: Option<RepoKinds>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Represents a single operation on a repository
|
/// Represents a single operation on a repository
|
||||||
|
|
|
@ -202,6 +202,7 @@ mod config {
|
||||||
path: "/tmp".to_string(),
|
path: "/tmp".to_string(),
|
||||||
url: "https://github.com/cafkafk/gg".to_string(),
|
url: "https://github.com/cafkafk/gg".to_string(),
|
||||||
flags: Some(vec![Clone, Push]),
|
flags: Some(vec![Clone, Push]),
|
||||||
|
kind: None,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue