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"]