refactor(home)!: moves home to PDA_HOME, out of PDA_HOME/stores/
This commit is contained in:
parent
11276fcf25
commit
b6248e409f
3 changed files with 8 additions and 9 deletions
10
README.md
10
README.md
|
|
@ -745,7 +745,7 @@ pda doctor
|
||||||
# ok Non-default config:
|
# ok Non-default config:
|
||||||
# ├── display_ascii_art: false
|
# ├── display_ascii_art: false
|
||||||
# └── git.auto_commit: true
|
# └── 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 Identity: /home/user/.config/pda/identity.txt
|
||||||
# ok Git initialised on main
|
# ok Git initialised on main
|
||||||
# ok Git remote configured
|
# ok Git remote configured
|
||||||
|
|
@ -792,12 +792,12 @@ PDA_CONFIG=/tmp/config/ pda set key value
|
||||||
|
|
||||||
<p align="center"></p><!-- spacer -->
|
<p align="center"></p><!-- spacer -->
|
||||||
|
|
||||||
Data is stored in your user data directory under `pda/stores/`.
|
Data is stored in your user data directory under `pda/`.
|
||||||
|
|
||||||
Usually:
|
Usually:
|
||||||
- linux: `~/.local/share/pda/stores/`
|
- linux: `~/.local/share/pda/`
|
||||||
- macOS: `~/Library/Application Support/pda/stores/`
|
- macOS: `~/Library/Application Support/pda/`
|
||||||
- windows: `%LOCALAPPDATA%/pda/stores/`
|
- windows: `%LOCALAPPDATA%/pda/`
|
||||||
|
|
||||||
`PDA_DATA` overrides the default storage location.
|
`PDA_DATA` overrides the default storage location.
|
||||||
```bash
|
```bash
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,8 @@ var gitCmd = &cobra.Command{
|
||||||
Short: "Run any arbitrary command. Use with caution.",
|
Short: "Run any arbitrary command. Use with caution.",
|
||||||
Long: `Run any arbitrary command. Use with caution.
|
Long: `Run any arbitrary command. Use with caution.
|
||||||
|
|
||||||
The Git repository lives directly in the stores directory
|
The Git repository lives directly in the data directory
|
||||||
("PDA_DATA/pda/stores"). Store files (*.ndjson) are tracked
|
("PDA_DATA"). Store files (*.ndjson) are tracked by Git as-is.
|
||||||
by Git as-is.
|
|
||||||
|
|
||||||
If you manually modify files without using the built-in
|
If you manually modify files without using the built-in
|
||||||
commands, you may desync your repository.
|
commands, you may desync your repository.
|
||||||
|
|
|
||||||
|
|
@ -190,7 +190,7 @@ func (s *Store) path() (string, error) {
|
||||||
}
|
}
|
||||||
return override, nil
|
return override, nil
|
||||||
}
|
}
|
||||||
scope := gap.NewVendorScope(gap.User, "pda", "stores")
|
scope := gap.NewScope(gap.User, "pda")
|
||||||
dir, err := scope.DataPath("")
|
dir, err := scope.DataPath("")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue