pub struct TwiddleCommand {Show 18 fields
pub commit_range: Option<String>,
pub model: Option<String>,
pub beta_header: Option<String>,
pub auto_apply: bool,
pub save_only: Option<String>,
pub use_context: bool,
pub context_dir: Option<PathBuf>,
pub work_context: Option<String>,
pub branch_context: Option<String>,
pub no_context: bool,
pub concurrency: usize,
pub batch_size: Option<usize>,
pub no_coherence: bool,
pub no_ai: bool,
pub fresh: bool,
pub refine: bool,
pub check: bool,
pub quiet: bool,
}Expand description
Twiddle command options.
Fields§
§commit_range: Option<String>Commit range to analyze and improve (e.g., HEAD~3..HEAD, abc123..def456).
model: Option<String>Claude API model to use (if not specified, uses settings or default).
beta_header: Option<String>Beta header to send with API requests (format: key:value). Only sent if the model supports it in the registry.
auto_apply: boolSkips confirmation prompt and applies amendments automatically.
save_only: Option<String>Saves generated amendments to file without applying.
use_context: boolUses additional project context for better suggestions (Phase 3).
context_dir: Option<PathBuf>Path to custom context directory (defaults to .omni-dev/).
work_context: Option<String>Specifies work context (e.g., “feature: user authentication”).
branch_context: Option<String>Overrides detected branch context.
no_context: boolDisables contextual analysis (uses basic prompting only).
concurrency: usizeMaximum number of concurrent AI requests (default: 4).
batch_size: Option<usize>Deprecated: use –concurrency instead.
no_coherence: boolDisables the cross-commit coherence pass.
no_ai: boolSkips AI processing and only outputs repository YAML.
fresh: boolIgnores existing commit messages and generates fresh ones based solely on diffs. This is the default behavior.
refine: boolUses existing commit messages as a starting point for AI refinement instead of generating fresh messages from scratch.
check: boolRuns commit message validation after applying amendments.
quiet: boolOnly shows errors/warnings, suppresses info-level output.
Implementations§
Trait Implementations§
Source§impl Args for TwiddleCommand
impl Args for TwiddleCommand
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 TwiddleCommand
impl CommandFactory for TwiddleCommand
Source§impl FromArgMatches for TwiddleCommand
impl FromArgMatches for TwiddleCommand
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 TwiddleCommand
impl Parser for TwiddleCommand
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 TwiddleCommand
impl RefUnwindSafe for TwiddleCommand
impl Send for TwiddleCommand
impl Sync for TwiddleCommand
impl Unpin for TwiddleCommand
impl UnsafeUnpin for TwiddleCommand
impl UnwindSafe for TwiddleCommand
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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