From 736d4117df98744290a7ab4cf4a349b207e3eced Mon Sep 17 00:00:00 2001 From: Amolith Date: Sun, 18 May 2025 11:20:31 -0600 Subject: [PATCH] fix(config): Correct multiple to singular terms in TOML config The TOML configuration keys `goals` and `areas` were incorrectly pluralized. This commit renames them to the singular `goal` and `area` respectively to align with the TOML parser's expectation for arrays of a single type. --- cmd/lunatask-mcp-server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/lunatask-mcp-server.go b/cmd/lunatask-mcp-server.go index 3dfd41bfeb96cd20fb123f4c7ded6beade34764c..ea59bd27a2e6fbc9cfa7074b41ff20b1773c40e7 100644 --- a/cmd/lunatask-mcp-server.go +++ b/cmd/lunatask-mcp-server.go @@ -33,7 +33,7 @@ func (g Goal) GetID() string { return g.ID } type Area struct { Name string `toml:"name"` ID string `toml:"id"` - Goals []Goal `toml:"goals"` + Goals []Goal `toml:"goal"` } // GetName returns the area's name. @@ -71,7 +71,7 @@ type ServerConfig struct { type Config struct { AccessToken string `toml:"access_token"` - Areas []Area `toml:"areas"` + Areas []Area `toml:"area"` Server ServerConfig `toml:"server"` Timezone string `toml:"timezone"` Habit []Habit `toml:"habit"`