Some updates
This commit is contained in:
parent
f40fea7955
commit
055072f491
@ -18,6 +18,12 @@ pub(crate) enum SupportedIncludes {
|
||||
Charts,
|
||||
}
|
||||
|
||||
|
||||
#[derive(Serialize, Deserialize, PartialEq, Debug, Clone, Default)]
|
||||
pub(crate) struct Hooks{
|
||||
pre_hooks: Option<Vec<String>>,
|
||||
post_hooks: Option<Vec<String>>
|
||||
}
|
||||
#[derive(Serialize, Deserialize, PartialEq, Debug, Clone, Default)]
|
||||
pub(crate) struct ChartExtended {
|
||||
#[serde(flatten)]
|
||||
@ -52,6 +58,7 @@ pub(crate) struct Config {
|
||||
pub(crate) patches: Option<Vec<Patch>>,
|
||||
#[serde(default = "empty_vec")]
|
||||
pub(crate) mirrors: Vec<Mirror>,
|
||||
pub(crate) hooks: Hooks,
|
||||
}
|
||||
|
||||
fn empty_vec<T>() -> Vec<T> {
|
||||
|
Loading…
Reference in New Issue
Block a user