Some updates
This commit is contained in:
		@@ -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> {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
use std::{
 | 
			
		||||
    use std::{
 | 
			
		||||
    fs::{self, read_dir, remove_dir_all, File, OpenOptions},
 | 
			
		||||
    io::Write,
 | 
			
		||||
    path::{Path, PathBuf},
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user