Expand description
Configuration management for the Aptu CLI.
Provides layered configuration from files and environment variables.
Uses XDG-compliant paths via the dirs crate.
§Configuration Sources (in priority order)
- Environment variables (prefix:
APTU_) - Config file:
~/.config/aptu/config.toml - Built-in defaults
§Examples
# Override AI model via environment variable
APTU_AI__MODEL=mistral-small cargo runStructs§
- AiConfig
- AI provider settings.
- AppConfig
- Application configuration.
- Cache
Config - Cache settings.
- Fallback
Config - Fallback provider chain configuration.
- Fallback
Entry - Single entry in the fallback provider chain.
- GitHub
Config - GitHub API settings.
- Repos
Config - Repository settings.
- Task
Override - Task-specific AI model override.
- Tasks
Config - Task-specific AI configuration.
- UiConfig
- UI preferences.
- User
Config - User preferences.
Enums§
- Task
Type - Task type for model selection.
Constants§
- DEFAULT_
GEMINI_ MODEL - Default
Geminimodel identifier. - DEFAULT_
OPENROUTER_ MODEL - Default
OpenRoutermodel identifier.
Functions§
- config_
dir - Returns the Aptu configuration directory.
- config_
file_ path - Returns the path to the configuration file.
- data_
dir - Returns the Aptu data directory.
- load_
config - Load application configuration.
- prompts_
dir - Returns the Aptu prompts configuration directory.