Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cmd/daily.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ func dailyCmdFunction(cmd *cobra.Command, args []string) error {
fmt.Printf(`### %s %s
@ <location>

- todo:
* Todo:

* Notes:
---
`, cfg.Today, cfg.DayOfWeek)

Expand Down
4 changes: 3 additions & 1 deletion cmd/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ func TestDailyCmd(t *testing.T) {
wantStdout := `### 2025-07-13 Sunday
@ <location>

- todo:
* Todo:

* Notes:
---
`

Expand Down
12 changes: 5 additions & 7 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]