summaryrefslogtreecommitdiff
path: root/internal/store/data.go
AgeCommit message (Collapse)Author
2026-04-17feat: add WriteBack hook on store.Data for backend-specific edit round-trip ↵Paul Buetow
(tasks i4+l4) Add optional WriteBack func([]byte) error field to Data struct. ReimportAfterExport calls WriteBack(newContent) when set, otherwise falls back to Commit. applyAction now calls s.LoadData (exported) so the geheim and KeePass edit paths are symmetric. Tests cover nil, non-nil, and error-propagation paths. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-02store: make Data carry injected deps (task 402)Paul Buetow
2026-03-02store: decouple crypto/git via interfaces (task 402)Paul Buetow
2026-02-22Rename binary from geheim to foostorePaul Buetow
- go.mod: module path codeberg.org/snonux/geheim → codeberg.org/snonux/foostore - cmd/geheim/ → cmd/foostore/ - Magefile.go: binary/binaryName/mainPkg constants updated - internal/config: config file path ~/.config/geheim.json → ~/.config/foostore.json - All import paths and comments updated throughout - Delete geheim.rb (the original Ruby implementation, superseded by this Go rewrite) - CLAUDE.md rewritten to reflect the Go implementation, new binary name, build system (mage), and current package architecture Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22Implement store package with full test coverage (task 352/store)Paul Buetow
Adds internal/store with Index, Data, and Store types that mirror the Ruby Index, GeheimData, and Geheim classes. All 22 tests pass including AddAndSearch, Import, Export, Remove, HashPath, IsBinary, and sort interface. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22Add Go project scaffold (task 352)Paul Buetow
- go.mod with module codeberg.org/snonux/geheim (go 1.22, mage dep) - Magefile.go with Build, Test, Install, Uninstall targets - cmd/geheim/main.go delegating to internal/cli - Stub packages: cli, version, config, crypto, git, store, clipboard, shell - go.sum generated; binary confirmed to build via mage build Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>