feat(config): add TOML config file support

- Add config.py with load_config(), find_default_config(), get_token(),
  and get_map_path()
- Auto-discover timesheets.toml in cwd; override with --config flag
- Priority: CLI flag > config file > env var / cwd default
- Add timesheets.example.toml as a committed reference template
- Add timesheets.toml to .gitignore to prevent accidental secret leakage
- Document config file format in AGENTS.md
This commit is contained in:
Jef Roosens 2026-05-22 10:47:05 +02:00
parent 267ad5b1b5
commit 29698b1241
Signed by: Jef Roosens
GPG key ID: 119385BCAA005C21
6 changed files with 183 additions and 5 deletions

3
.gitignore vendored
View file

@ -8,3 +8,6 @@ wheels/
# Virtual environments
.venv
# Local config (contains secrets)
timesheets.toml