From fd5b955d18236c3552a2e8991477535fb37bfa27 Mon Sep 17 00:00:00 2001 From: Amolith Date: Sun, 21 Dec 2025 19:34:52 -0700 Subject: [PATCH] refactor(config): use ~/.config/lune as config dir Assisted-by: Claude Sonnet 4 via Crush --- AGENTS.md | 2 +- internal/config/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 1cd7a55283d8c4d0317a0fb9fe1c8e0b28920fc0..5d4310403bd65dc7b232224b8ee845105d65bb25 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -45,7 +45,7 @@ cmd/ habit/ → habit track internal/ client/ → Lunatask API client factory (uses system keyring) - config/ → TOML config at ~/.config/lunatask/config.toml + config/ → TOML config at ~/.config/lune/config.toml ui/ → Lipgloss styles (Success, Warning, Error, Muted, Bold) validate/ → Input validation (UUID format) ``` diff --git a/internal/config/config.go b/internal/config/config.go index 41a794f47ab7d07ac36be931938c8886597794b4..0281548bb8fb9f398615f7db560e21c734637812 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -73,7 +73,7 @@ func Path() (string, error) { return "", fmt.Errorf("getting config dir: %w", err) } - return filepath.Join(configDir, "lunatask", "config.toml"), nil + return filepath.Join(configDir, "lune", "config.toml"), nil } // Load reads the config file. Returns ErrNotFound if the file doesn't exist.