From 4bd68a821a034823a04e4e8089e7cc7975f028e8 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Wed, 4 Feb 2026 04:43:15 +0000 Subject: [PATCH] Initial upload: gitignore-gen Rust CLI tool with 100+ templates --- app/gitignore-gen/src/core/config.rs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 app/gitignore-gen/src/core/config.rs 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() + } +}