pub struct TwiddleCommand {
pub commit_range: Option<String>,
pub model: 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 batch_size: usize,
pub no_ai: 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)
auto_apply: boolSkip confirmation prompt and apply amendments automatically
save_only: Option<String>Save generated amendments to file without applying
use_context: boolUse 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>Specify work context (e.g., “feature: user authentication”)
branch_context: Option<String>Override detected branch context
no_context: boolDisable contextual analysis (use basic prompting only)
batch_size: usizeMaximum number of commits to process in a single batch (default: 4)
no_ai: boolSkip AI processing and only output repository YAML
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
Append to
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>
Assign values from
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>
Assign values from
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
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on 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 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
Mutably borrows from an owned value. Read more