Release v0.1.5
🔧 Simplified Config Edit Flow
The config edit command has been refactored for a cleaner, safer editing experience.
What Changed
Before (v0.1.4):
- Create backup file (
config.toml.bak) - Open editor directly on config file
- Validate after save
- If failed: restore from backup
After (v0.1.5):
- Read config into memory
- Edit in temporary file (via
editcrate) - Validate in memory
- Only write to config file if validation passes
Benefits
- Safer: Original file is never modified until validation passes
- Consistent: Uses same
editcrate as commit message editing - Better UX: Re-edit preserves your changes (no more losing edits on validation failure)
- Cleaner: No backup files left behind
Menu Change
The validation failure menu now shows:
? What would you like to do?
> ✎ Re-edit the config file
↩ Keep original config ← was "Restore previous config"
⚠ Ignore errors and save anyway (dangerous)"Keep original" better reflects reality: the original file was never changed.
📦 Installation
bash
cargo install gcop-rsOr build from source:
bash
git clone https://github.com/AptS-1547/gcop-rs.git
cd gcop-rs
cargo build --release