pub struct AuditCli {
pub command: AuditCommand,
pub verbose: bool,
pub quiet: bool,
pub config: Option<PathBuf>,
}Available on crate feature
doc-audit only.Expand description
Documentation audit system for ADK-Rust.
Fields§
§command: AuditCommand§verbose: boolEnable verbose output
quiet: boolEnable quiet mode (minimal output)
config: Option<PathBuf>Configuration file path
Implementations§
Source§impl AuditCli
impl AuditCli
Sourcepub fn parse_args() -> AuditCli
pub fn parse_args() -> AuditCli
Parse command line arguments and create configuration.
Sourcepub fn to_config(&self) -> Result<AuditConfig, AuditError>
pub fn to_config(&self) -> Result<AuditConfig, AuditError>
Convert CLI arguments to AuditConfig.
Sourcepub fn get_output_path(&self) -> Option<&PathBuf>
pub fn get_output_path(&self) -> Option<&PathBuf>
Get the output file path for commands that support it.
Sourcepub fn get_output_format(&self) -> OutputFormat
pub fn get_output_format(&self) -> OutputFormat
Get the output format for the current command.
Sourcepub fn get_output_path_with_default(&self) -> Option<PathBuf>
pub fn get_output_path_with_default(&self) -> Option<PathBuf>
Get the output file path with default filename if format requires file output.
Sourcepub fn get_crate_name(&self) -> Option<&String>
pub fn get_crate_name(&self) -> Option<&String>
Get the crate name for single crate audit.
Sourcepub fn get_single_crate_options(
&self,
) -> Option<(Option<&String>, Option<&PathBuf>)>
pub fn get_single_crate_options( &self, ) -> Option<(Option<&String>, Option<&PathBuf>)>
Get the single crate options for audit command.
Sourcepub fn get_changed_files(&self) -> Option<&[PathBuf]>
pub fn get_changed_files(&self) -> Option<&[PathBuf]>
Get the changed files for incremental audit.
Sourcepub fn get_validate_file(&self) -> Option<&PathBuf>
pub fn get_validate_file(&self) -> Option<&PathBuf>
Get the file path for single file validation.
Sourcepub fn get_init_config_path(&self) -> Option<&PathBuf>
pub fn get_init_config_path(&self) -> Option<&PathBuf>
Get the configuration path for init command.
Sourcepub fn get_stats_limit(&self) -> Option<usize>
pub fn get_stats_limit(&self) -> Option<usize>
Get the limit for stats command.
Trait Implementations§
Source§impl Args for AuditCli
impl Args for AuditCli
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 AuditCli
impl CommandFactory for AuditCli
Source§impl FromArgMatches for AuditCli
impl FromArgMatches for AuditCli
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<AuditCli, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<AuditCli, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<AuditCli, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<AuditCli, 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 AuditCli
impl Parser for AuditCli
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 AuditCli
impl RefUnwindSafe for AuditCli
impl Send for AuditCli
impl Sync for AuditCli
impl Unpin for AuditCli
impl UnwindSafe for AuditCli
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request