From a0bd68ea7af7d9b3c4d1eae5b87005ca6e17fc9c Mon Sep 17 00:00:00 2001 From: Kristian Borgwarth <10348902@pm.me> Date: Fri, 3 Apr 2026 02:47:38 +0200 Subject: [PATCH] ref(config): remove redundant config --- config/config.go | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 config/config.go diff --git a/config/config.go b/config/config.go deleted file mode 100644 index f5db6eb..0000000 --- a/config/config.go +++ /dev/null @@ -1,46 +0,0 @@ -// Package config provides configuration management for the application, allowing for easy loading and parsing of configuration files, environment variables, and command-line arguments. It supports various formats such as JSON, YAML, and TOML, and provides a unified interface for accessing configuration values throughout the application. -package config - -type ScratchConfig struct { - Dir string - TemplateName string -} - -type DailyConfig struct { - Dir string - TemplateName string - FilenameFormat string -} - -type Config struct { - VaultPath string - TemplateDir string - ScratchNote ScratchConfig - DailyNote DailyConfig -} - -func (c *Config) SetDefaults() { - if c.TemplateDir == "" { - c.TemplateDir = "templates" - } - - if c.ScratchNote.Dir == "" { - c.ScratchNote.Dir = "scratch" - } - - if c.ScratchNote.TemplateName == "" { - c.ScratchNote.TemplateName = "scratch.md" - } - - if c.DailyNote.Dir == "daily" { - c.DailyNote.Dir = "daily" - } - - if c.DailyNote.TemplateName == "" { - c.DailyNote.TemplateName = "daily.md" - } - - if c.DailyNote.FilenameFormat == "" { - c.DailyNote.FilenameFormat = "2006-01-02.md" - } -}