pub struct StagedCommand {
pub print_only: bool,
pub context_dir: Option<PathBuf>,
pub no_ai: bool,
}Expand description
omni-dev git commit message staged CLI command.
Model/beta-header selection uses the global --model/--beta-header
flags (propagated as OMNI_DEV_MODEL/OMNI_DEV_BETA_HEADER) and the
per-backend env chain; the only subcommand-local flags are --print-only,
--context-dir, and --no-ai.
Fields§
§print_only: boolPrint the generated message to stdout instead of committing.
context_dir: Option<PathBuf>Override the context directory used to load project scopes.
no_ai: boolSkip the AI backend entirely and print a deterministic type(scope):
skeleton derived from the staged diff’s changed files — no AI, no
network, no credentials required. The scope is resolved the same way
lint --suggest/--fix do (resolve_scope against
.omni-dev/scopes.yaml + ecosystem defaults); the type is a
best-effort heuristic, not validated against an enumerable list.
Always prints and never commits, regardless of --print-only — a
bare skeleton has no description, so it’s never a complete message
to commit.
Implementations§
Trait Implementations§
Source§impl Args for StagedCommand
impl Args for StagedCommand
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 StagedCommand
impl CommandFactory for StagedCommand
Source§impl FromArgMatches for StagedCommand
impl FromArgMatches for StagedCommand
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 StagedCommand
impl Parser for StagedCommand
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 StagedCommand
impl RefUnwindSafe for StagedCommand
impl Send for StagedCommand
impl Sync for StagedCommand
impl Unpin for StagedCommand
impl UnsafeUnpin for StagedCommand
impl UnwindSafe for StagedCommand
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