diff --git a/app/gitignore-gen/src/core/config.rs b/app/gitignore-gen/src/core/config.rs new file mode 100644 index 0000000..f9e31b9 --- /dev/null +++ b/app/gitignore-gen/src/core/config.rs @@ -0,0 +1,24 @@ +use std::path::PathBuf; + +#[derive(Debug, Clone)] +pub struct Config { + pub template_path: PathBuf, + pub auto_update_templates: bool, + pub show_categories: bool, +} + +impl Default for Config { + fn default() -> Self { + Self { + template_path: PathBuf::from("resources/templates"), + auto_update_templates: false, + show_categories: true, + } + } +} + +impl Config { + pub fn new() -> Self { + Self::default() + } +}