Skip to content

fix(model): use XDG base directory for persistent data and settings - #8

Open
Raina-Hardik wants to merge 1 commit into
parsaenami:mainfrom
Raina-Hardik:fix/xdg-data-directory
Open

fix(model): use XDG base directory for persistent data and settings#8
Raina-Hardik wants to merge 1 commit into
parsaenami:mainfrom
Raina-Hardik:fix/xdg-data-directory

Conversation

@Raina-Hardik

@Raina-Hardik Raina-Hardik commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Fixes #6

Summary

Switches data and configuration persistence from the current working directory ($PWD/data) to standard XDG base directories using github.com/adrg/xdg:

  • Data files (tasks.json, notes.json) are stored in $XDG_DATA/taskii/.
  • Configuration (settings.json) is stored in $XDG_CONFIG/taskii/.

Verification

  • Added unit test suite in \internal/model/store_test.go\ verifying read/write behavior across XDG paths.
  • go test ./..., go vet ./..., and go build ./... all passing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

relative path bug for data

1 participant