feat(cli): wire XDG path resolution into CLI layer

History path now defaults to None and resolves via XDG→CWD search,
falling back to XDG location when not found. Missing config message
lists searched paths. --verbose shows resolved paths for all three
files. Explicit --config/--secrets/--history bypass resolution.

Closes #23
This commit is contained in:
AlexKucera committed 2026-06-04 10:32:31 +02:00
1 parent 3ba9f25903
commit 01b14f1926
5 files changed
+315 -10

No files matched your search

+6
View File
@@ -14,6 +14,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
(prints notice, uses built-in defaults); missing secrets.yaml raises
domain error listing searched paths. All OS exceptions wrapped as
`ConfigError`. XDG directory auto-created on demand.
- **cli (closes #23):** Wire XDG path resolution into CLI layer.
History path defaults to `None` (resolves XDG → CWD, falls back to XDG
location). Missing config message now lists searched paths. `--verbose`
shows resolved file paths for config, secrets, and history. Explicit
`--config`/`--secrets`/`--history` flags bypass search. Clean exit 1
with no traceback when secrets missing from all locations.
### Documentation
- **docs site (closes #10):** MkDocs documentation with 8 pages — Quickstart,