Skip to content

Release v0.7.2

Code Quality - Unified Command Options Architecture

This release refactors command parameter handling by introducing unified option structs, improving code maintainability and type safety. (closes #15)

Refactored

Unified Command Options

Introduced dedicated option structs for each command, replacing scattered function parameters:

  • CommitOptions - Aggregates no_edit, yes, dry_run, format, feedback, verbose, provider_override
  • ReviewOptions - Aggregates target, format, verbose, provider_override
  • StatsOptions - Aggregates format, author

New OutputFormat Enum

Unified handling of --format and --json CLI parameters with OutputFormat::from_cli().

Other Changes

  • Added Debug derive to ReviewTarget enum
  • Updated main.rs and test files to use new parameter passing pattern
  • Simplified parent commit collection creation in tests

Upgrade

bash
# Homebrew
brew upgrade gcop-rs

# Cargo
cargo install gcop-rs

# pip
pip install --upgrade gcop-rs