Expand description
Configuration types, loading, and overlay merge logic. Configuration loading and overlay merge logic.
cc-toolgate ships with sensible defaults embedded in the binary via
config.default.toml. Users can override any part by placing a
config.toml at ~/.config/cc-toolgate/config.toml. The user config
merges with defaults: lists extend (deduplicated), scalars override,
remove_<field> subtracts, and replace = true replaces entirely.
Structs§
- Cargo
Config - Cargo subcommand evaluation rules.
- Commands
- Flat command name → decision mappings for simple commands.
- Config
- Top-level configuration, produced by merging embedded defaults with
an optional user overlay from
~/.config/cc-toolgate/config.toml. - GhConfig
- GitHub CLI (gh) subcommand evaluation rules.
- GitConfig
- Git subcommand evaluation rules.
- Kubectl
Config - kubectl subcommand evaluation rules.
- Settings
- Global settings that affect evaluation behavior.
- Wrapper
Config - Commands that execute their arguments as subcommands. The wrapped command is extracted and evaluated; the final decision is max(floor, wrapped_command_decision).