diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-18 08:14:23 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-18 08:14:23 +0300 |
| commit | dfd6bc30afefba57a34aa2d3d2e384701c3cf28e (patch) | |
| tree | d5ca36d41868dc53d5ae0bd84d4d2dfd945a08c5 /internal/cli/kdbx_store_test.go | |
| parent | e9ba8589491fcaae475627f0dd613b4ba21ee442 (diff) | |
feat: add --kdbx-path CLI flag to override KeePass database path at runtime
Allows specifying the .kdbx file path without editing the config file:
foostore --backend keepass --kdbx-path /path/to/db.kdbx ls
The flag overrides cfg.KDBXPath for the process lifetime. Implemented by
extracting a shared parseFlagValue helper used by both parseBackendFlag and
the new parseKDBXPathFlag. Help text updated to document both global flags.
Table-driven tests added for parseKDBXPathFlag (mirrors TestParseBackendFlag).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/cli/kdbx_store_test.go')
0 files changed, 0 insertions, 0 deletions
