Initial upload: gitignore-gen Rust CLI tool with 100+ templates
This commit is contained in:
24
app/gitignore-gen/src/core/config.rs
Normal file
24
app/gitignore-gen/src/core/config.rs
Normal file
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user