pub struct UsageCommand {
pub commit_range: Option<String>,
pub max_count: Option<usize>,
pub context_dir: Option<PathBuf>,
pub project_only: bool,
pub output: OutputFormat,
}Expand description
Usage command options — tallies declared commit scopes against history.
Fields§
§commit_range: Option<String>Commit range to analyze (e.g., HEAD~300..HEAD, abc123..def456). Defaults to the entire history reachable from HEAD.
max_count: Option<usize>Limits analysis to the newest N commits reachable from HEAD (ignored
when COMMIT_RANGE is given). Useful for comparing the answer at
different window sizes, e.g. -n 150 vs -n 400.
context_dir: Option<PathBuf>Path to custom context directory (defaults to .omni-dev/).
project_only: boolExcludes ecosystem default scopes (cargo/core/lib/test, …) from the known set, so they are reported as unknown rather than accepted.
output: OutputFormatOutput format.
Implementations§
Trait Implementations§
Source§impl Args for UsageCommand
impl Args for UsageCommand
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 UsageCommand
impl CommandFactory for UsageCommand
Source§impl FromArgMatches for UsageCommand
impl FromArgMatches for UsageCommand
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 UsageCommand
impl Parser for UsageCommand
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 UsageCommand
impl RefUnwindSafe for UsageCommand
impl Send for UsageCommand
impl Sync for UsageCommand
impl Unpin for UsageCommand
impl UnsafeUnpin for UsageCommand
impl UnwindSafe for UsageCommand
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