feat(cli): add config file support

- load configuration from a file
- use config crate for config loading
- allow overriding config with environment variables
- set default credential path
- fix error handling for config loading
This commit is contained in:
Jeremiah Russell
2025-10-15 16:02:48 +01:00
committed by Jeremiah Russell
parent 6b9ce2670e
commit c53ad65368
4 changed files with 48 additions and 21 deletions

View File

@@ -24,6 +24,7 @@ include = [
chrono = "0.4.42"
clap = { version = "4.5.48", features = ["derive"] }
clap-verbosity-flag = { version = "3.0.4", features = ["tracing"] }
config = { version = "0.15.18", default-features = false, features = ["json", "toml"] }
env_logger = "0.11.8"
google-gmail1 = "6.0.0"
log = "0.4.28"