summaryrefslogtreecommitdiff
path: root/internal/config
AgeCommit message (Collapse)Author
2026-03-02config: handle UserHomeDir failures (task 400)Paul Buetow
2026-02-22Bump version to v0.5.1, change default data_dir to ~/git/foostoredbv0.5.1Paul Buetow
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22Replace all geheim path/name defaults with foostorePaul Buetow
- Default data_dir: ~/git/geheimlager → ~/git/foostore-data - Default export_dir: ~/.geheimlagerexport → ~/.foostore-export - Default key_file: ~/.geheimlager.key → ~/.foostore.key - Rename env var GEHEIM_SHELL → FOOSTORE_SHELL - Update package-level comments across cli, shell, store, git, config - Update Magefile and CLAUDE.md docs to reflect new paths Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22Use \$EDITOR as default editor, falling back to vi (task 344)Paul Buetow
defaultConfig() now reads the \$EDITOR environment variable for EditCmd so users get their preferred editor automatically without touching the config file. Falls back to "vi" (universally available) when \$EDITOR is unset or empty. A JSON config value still takes precedence over \$EDITOR. Updated tests to: unset \$EDITOR where "vi" fallback is asserted, add TestLoad_editorEnvVar covering the three cases (\$EDITOR unset, \$EDITOR set, JSON override), and remove all stale "hx" references from comments. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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 version and config packages (task 353)Paul Buetow
2026-02-22Implement version and config packages (task 353)Paul Buetow
- internal/version: bump Version constant to v0.4.0 - internal/config: full Config struct with JSON snake_case fields matching Ruby Config::DEFAULTS; Load() merges ~/.config/geheim.json over defaults, tilde-expands path fields, and warns on stderr for parse errors - internal/config: table-driven tests covering defaults, overrides, tilde expansion, invalid JSON warning, and silent missing-file behaviour 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>