From 1d72a1a0957398632cdc7d7d182ac420fdf503c4 Mon Sep 17 00:00:00 2001 From: Aadam Ali <57071686+aadam-ali@users.noreply.github.com> Date: Mon, 24 Aug 2026 22:26:37 +0100 Subject: [PATCH] fix: Daily note content Updated the daily note content to be more useful, include a todo and notes section. Also, removed some dead code relating to daily notes, since I'm only using the template rather than creating daily notes. --- cmd/daily.go | 4 +++- cmd/integration_test.go | 4 +++- config/config.go | 12 +++++------- mise.toml | 1 + 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/cmd/daily.go b/cmd/daily.go index 8539132..be268d1 100644 --- a/cmd/daily.go +++ b/cmd/daily.go @@ -17,7 +17,9 @@ func dailyCmdFunction(cmd *cobra.Command, args []string) error { fmt.Printf(`### %s %s @ -- todo: +* Todo: + +* Notes: --- `, cfg.Today, cfg.DayOfWeek) diff --git a/cmd/integration_test.go b/cmd/integration_test.go index 6791f1a..746edfe 100644 --- a/cmd/integration_test.go +++ b/cmd/integration_test.go @@ -129,7 +129,9 @@ func TestDailyCmd(t *testing.T) { wantStdout := `### 2025-07-13 Sunday @ -- todo: +* Todo: + +* Notes: --- ` diff --git a/config/config.go b/config/config.go index e29e208..c3dc584 100644 --- a/config/config.go +++ b/config/config.go @@ -11,13 +11,11 @@ var Now = time.Now // Configuration holds the configuration settings for the CLI type Configuration struct { - RootDir string - InboxDir string - JournalDir string - DailyNotePath string - DayOfWeek string - Today string - Version string + RootDir string + InboxDir string + DayOfWeek string + Today string + Version string } // GetConfig returns the Conifugration struct by reading environment diff --git a/mise.toml b/mise.toml index 620f6fb..5aeda12 100644 --- a/mise.toml +++ b/mise.toml @@ -24,3 +24,4 @@ run = "go test -v ./..." [tasks.build] description = "Build" run = ["go build -o ./bin/sb -ldflags \"-X github.com/aadam-ali/second-brain-cli/config.version=$(git rev-parse --short HEAD)\" main.go"] +depends = ["test"]