doing-config (0.1.2)
Installation
[registries.forgejo]
index = "sparse+ " # Sparse index
# index = " " # Git
[net]
git-fetch-with-cli = truecargo add [email protected] --registry forgejoAbout this package
Configuration loading and types for the doing CLI
doing-config
Configuration loading and types for the doing CLI.
This crate handles config file discovery (global and local .doingrc files), multi-format parsing (YAML, TOML, JSON),
deep-merging of layered configs, environment variable overrides, and typed configuration structs.
Usage
use doing_config::Config;
let config = Config::load().unwrap();
println!("Current section: {}", config.current_section);
println!("Doing file: {}", config.doing_file.display());
License
MIT — see LICENSE for details.
Dependencies
| ID | Version |
|---|---|
| dir_spec | ^0.5 |
| doing-error | ^0.1.1 |
| doing-time | ^0.1.3 |
| json_comments | ^0.2 |
| serde | ^1 |
| serde_json | ^1 |
| toml | ^1 |
| typed-env | ^0.3 |
| yaml_serde | ^0.10 |
| pretty_assertions | ^1 |
| tempfile | ^3 |
Keywords
cli
doing
time-tracking
configuration
Details
Assets (1)
Versions (9)
View all
doing-config-0.1.2.crate
15 KiB