diff --git a/README.md b/README.md index 2f4a491..c04af7e 100644 --- a/README.md +++ b/README.md @@ -745,7 +745,7 @@ pda doctor # ok Non-default config: # ├── display_ascii_art: false # └── git.auto_commit: true -# ok Data: /home/user/.local/share/pda/stores +# ok Data: /home/user/.local/share/pda # ok Identity: /home/user/.config/pda/identity.txt # ok Git initialised on main # ok Git remote configured @@ -792,12 +792,12 @@ PDA_CONFIG=/tmp/config/ pda set key value

-Data is stored in your user data directory under `pda/stores/`. +Data is stored in your user data directory under `pda/`. Usually: -- linux: `~/.local/share/pda/stores/` -- macOS: `~/Library/Application Support/pda/stores/` -- windows: `%LOCALAPPDATA%/pda/stores/` +- linux: `~/.local/share/pda/` +- macOS: `~/Library/Application Support/pda/` +- windows: `%LOCALAPPDATA%/pda/` `PDA_DATA` overrides the default storage location. ```bash diff --git a/cmd/git.go b/cmd/git.go index 4254d4d..6deca82 100644 --- a/cmd/git.go +++ b/cmd/git.go @@ -34,9 +34,8 @@ var gitCmd = &cobra.Command{ Short: "Run any arbitrary command. Use with caution.", Long: `Run any arbitrary command. Use with caution. -The Git repository lives directly in the stores directory -("PDA_DATA/pda/stores"). Store files (*.ndjson) are tracked -by Git as-is. +The Git repository lives directly in the data directory +("PDA_DATA"). Store files (*.ndjson) are tracked by Git as-is. If you manually modify files without using the built-in commands, you may desync your repository. diff --git a/cmd/shared.go b/cmd/shared.go index 4e986cc..40e2410 100644 --- a/cmd/shared.go +++ b/cmd/shared.go @@ -190,7 +190,7 @@ func (s *Store) path() (string, error) { } return override, nil } - scope := gap.NewVendorScope(gap.User, "pda", "stores") + scope := gap.NewScope(gap.User, "pda") dir, err := scope.DataPath("") if err != nil { return "", err