pub struct SweepArgs {Show 19 fields
pub path: String,
pub fuse: Option<String>,
pub fail_on_ticking: bool,
pub format: Option<FormatArg>,
pub config: Option<String>,
pub since: Option<String>,
pub blame: bool,
pub changed: bool,
pub base: Option<String>,
pub owner: Option<String>,
pub tag: Option<String>,
pub message: Option<String>,
pub quiet: bool,
pub summary: bool,
pub max_detonated: Option<u32>,
pub max_ticking: Option<u32>,
pub output: Option<String>,
pub no_inert: bool,
pub stats: bool,
}Expand description
Arguments for the sweep subcommand.
Fields§
§path: StringPath to scan (default: current directory)
fuse: Option<String>Warn on fuses expiring within this window (e.g. “30d”)
fail_on_ticking: boolExit with code 1 if any fuses are in the ticking window (not just detonated)
format: Option<FormatArg>Output format
config: Option<String>Path to config file (default: .timebomb.toml in scan root or cwd)
since: Option<String>Only report fuses touched in the git diff against this ref (e.g. “HEAD”, “main”)
blame: boolEnrich fuses without an explicit owner with git blame author
changed: boolOnly report fuses on lines changed in the git diff
base: Option<String>Base ref for –changed (default: HEAD)
owner: Option<String>Only show fuses belonging to this owner (case-insensitive)
tag: Option<String>Only show fuses with this tag (case-insensitive, e.g. “FIXME”)
message: Option<String>Only show fuses whose message contains this text (case-insensitive)
quiet: boolSuppress all output; rely on the exit code only
summary: boolPrint only the summary line, not individual fuses
max_detonated: Option<u32>Hard ceiling on detonated fuses; sweep exits 1 if exceeded (overrides config)
max_ticking: Option<u32>Hard ceiling on ticking fuses; sweep exits 1 if exceeded (overrides config)
output: Option<String>Write a JSON report to this file in addition to normal output
no_inert: boolHide inert (safe) fuses from output
stats: boolPrint a per-tag breakdown of detonated/ticking counts after the summary (terminal only)
Trait Implementations§
Source§impl Args for SweepArgs
impl Args for SweepArgs
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 FromArgMatches for SweepArgs
impl FromArgMatches for SweepArgs
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.Auto Trait Implementations§
impl Freeze for SweepArgs
impl RefUnwindSafe for SweepArgs
impl Send for SweepArgs
impl Sync for SweepArgs
impl Unpin for SweepArgs
impl UnsafeUnpin for SweepArgs
impl UnwindSafe for SweepArgs
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> 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