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.