feat(config): add XDG path resolution with CWD fallback
Add _resolve_config_file() searching ~/.config/librofm-downloader/ then CWD. Wire into load_config() so None triggers search. Missing config.yaml is non-fatal (prints notice, uses defaults); missing secrets.yaml raises ConfigError listing searched paths. All OS exceptions wrapped as domain errors. XDG dir auto-created. Closes #22
This commit is contained in:
1 parent
090132f39e
commit
3ba9f25903
6 files changed
+308
-14
No files matched your search
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
- **config (closes #22):** XDG config path resolution with CWD fallback.
|
||||
`_resolve_config_file()` searches `~/.config/librofm-downloader/` then CWD.
|
||||
`load_config(None, None)` triggers search; missing config.yaml is non-fatal
|
||||
(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.
|
||||
|
||||
### Documentation
|
||||
- **docs site (closes #10):** MkDocs documentation with 8 pages — Quickstart,
|
||||
Configuration Reference, Secrets, Path Patterns, Format Strategies, CLI Usage,
|
||||
|
||||
Reference in new issue
Block a user