Expand description
Configuration file support.
Parses TOML configuration from global (~/.config/git-paw/config.toml)
and per-repo (.git-paw/config.toml) files. Supports custom CLI definitions,
presets, and programmatic add/remove of custom CLIs.
Structs§
- Custom
Cli - A custom CLI definition from config.
- PawConfig
- Top-level git-paw configuration.
- Preset
- A named preset defining branches and a CLI to use.
Functions§
- add_
custom_ cli - Adds a custom CLI to the global config.
- add_
custom_ cli_ to - Adds a custom CLI to the config at the given path.
- global_
config_ path - Returns the path to the global config file (
~/.config/git-paw/config.toml). - load_
config - Loads the merged configuration for a repository.
- load_
config_ from - Loads merged config from an explicit global path and repo root.
- remove_
custom_ cli - Removes a custom CLI from the global config.
- remove_
custom_ cli_ from - Removes a custom CLI from the config at the given path.
- repo_
config_ path - Returns the path to a repo-level config file (
.git-paw/config.toml).