Repository navigation
feat: implement configuration file support - #43
Conversation
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
- Add Config::save() method using toml_edit - Preserve user comments when updating config values - Support speed and background options in addition to theme - Change config path from config.yaml to config.toml 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
- Add 'theme set' subcommand to update default theme - Make CLI args optional to allow config file fallback - Merge config values with CLI arguments (CLI takes precedence) - Validate theme exists before saving to config 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
- Document config file location and format (TOML) - Add example configuration with all options - Explain configuration priority (CLI > config > defaults) - Add theme set command usage example 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
|
Warning Rate limit exceeded@unhappychoice has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 21 minutes and 25 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
WalkthroughConfiguration support extended: new Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI
participant Config
participant FS
rect rgb(220, 235, 255)
Note over User,CLI: Resolve configuration precedence
end
User->>CLI: gitlogue --speed 60 --background false
CLI->>Config: load() from ~/.config/gitlogue/config.toml
Config->>FS: read file
FS-->>Config: return TOML (or not found)
alt CLI values provided
CLI->>Config: use CLI speed/background
else Config file has values
Config->>CLI: use config values
else
Config->>CLI: use defaults
end
CLI->>UI: instantiate with resolved speed/background
UI-->>User: render
rect rgb(220, 255, 230)
Note over User,Config: Persist theme via `theme set`
end
User->>CLI: gitlogue theme set dracula
CLI->>Config: validate "dracula" exists
CLI->>Config: load or create config
Config->>FS: parse or create TOML (toml_edit)
Config->>FS: write updated config (preserve comments)
FS-->>Config: write success
CLI-->>User: print config path
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Areas requiring attention:
Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Create comprehensive configuration documentation covering: - Config file format and location - All available options with examples - Configuration priority (CLI > config > defaults) - Comment preservation feature - Troubleshooting tips 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Move detailed configuration info to docs/configuration.md. Keep README concise with link to detailed guide. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Improve README structure by showing features earlier. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Command example already exists in Usage section. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
close: #11
Summary
~/.config/gitlogue/config.tomltheme setcommand to update default theme while preserving user commentstheme,speed, andbackgroundoptions in config fileChanges
Added
toml_editdependency for comment-preserving config updatesConfig::save()method that preserves user comments in TOML filetheme set <name>subcommand to update default themespeedandbackgroundoptions in config fileChanged
speed,background) made optional to allow config file fallback~/.config/gitlogue/config.tomlDocumentation
Implementation Details
Comment Preservation
Using
toml_edit::DocumentMutto parse and update TOML while preserving:Configuration Priority
Example Usage
Test Plan
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Improvements
Documentation