pub struct Args {Show 27 fields
pub mode: Mode,
pub target: Option<String>,
pub copy: bool,
pub dry_run: bool,
pub dir: String,
pub model: Option<String>,
pub summary_model: Option<String>,
pub temperature: Option<f32>,
pub fixes: Vec<String>,
pub closes: Vec<String>,
pub resolves: Vec<String>,
pub refs: Vec<String>,
pub breaking: bool,
pub config: Option<PathBuf>,
pub context: Vec<String>,
pub rewrite: bool,
pub rewrite_preview: Option<usize>,
pub rewrite_start: Option<String>,
pub rewrite_parallel: usize,
pub rewrite_dry_run: bool,
pub rewrite_hide_old_types: bool,
pub exclude_old_message: bool,
pub compose: bool,
pub compose_preview: bool,
pub compose_interactive: bool,
pub compose_max_commits: Option<usize>,
pub compose_test_after_each: bool,
}Fields§
§mode: ModeWhat to analyze
target: Option<String>Commit hash/ref when using –mode=commit
copy: boolCopy the message to clipboard
dry_run: boolPreview without committing (default is to commit for staged mode)
dir: StringDirectory to run git commands in
model: Option<String>Model for analysis (default: sonnet). Use short names (sonnet/opus/haiku) or full names
summary_model: Option<String>Model for summary creation (default: haiku)
temperature: Option<f32>Temperature for API calls (0.0-1.0, default: 1.0)
fixes: Vec<String>Issue numbers this commit fixes (e.g., –fixes 123 456)
closes: Vec<String>Issue numbers this commit closes (alias for –fixes)
resolves: Vec<String>Issue numbers this commit resolves (alias for –fixes)
refs: Vec<String>Related issue numbers (e.g., –refs 789)
breaking: boolMark this commit as a breaking change
config: Option<PathBuf>Path to config file (default: ~/.config/llm-git/config.toml)
context: Vec<String>Additional context to provide to the analysis model (all trailing non-flag text)
rewrite: boolRewrite git history to conventional commits
rewrite_preview: Option<usize>Preview N commits without rewriting
rewrite_start: Option<String>Start from this ref (exclusive, e.g., main~50)
rewrite_parallel: usizeNumber of parallel API calls
rewrite_dry_run: boolDry run - show what would be changed
rewrite_hide_old_types: boolHide old commit type/scope tags to avoid model influence
exclude_old_message: boolExclude old commit message from context when analyzing commits (prevents contamination)
compose: boolCompose changes into multiple atomic commits
compose_preview: boolPreview proposed splits without committing
compose_interactive: boolAllow interactive refinement of splits
compose_max_commits: Option<usize>Maximum number of commits to create
compose_test_after_each: boolRun tests after each commit
Trait Implementations§
Source§impl Args for Args
impl Args for Args
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for Args
impl Parser for Args
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more