pub struct RunArgs<'a> {
pub target_path: Option<&'a str>,
pub dry_run: bool,
pub force: bool,
pub yes: bool,
pub daemon: bool,
pub only: Option<&'a str>,
pub skip: Option<&'a str>,
pub min_size_mb: Option<u64>,
pub except: Option<&'a str>,
pub json: bool,
pub explain: bool,
}Expand description
Everything devp run was asked to do.
A struct rather than nine positional parameters: the call site in run_cli reads as
a list of names, and adding a flag does not silently shift an argument.
Fields§
§target_path: Option<&'a str>Optional single workspace to act on instead of the whole registry.
dry_run: boolReport sizes and stop.
force: boolBypass the idle threshold. Lockfile verification still applies.
yes: boolSkip the confirmation prompt.
daemon: boolThis is the scheduled background pass.
only: Option<&'a str>Comma-separated adapters to act on exclusively.
skip: Option<&'a str>Comma-separated adapters to leave alone.
min_size_mb: Option<u64>Size floor in MiB, overriding the configured min_size_mb.
except: Option<&'a str>Comma-separated repositories to leave completely alone this pass.
json: boolEmit one JSON document instead of the human report.
explain: boolExplain every decision and touch nothing.
Auto Trait Implementations§
impl<'a> Freeze for RunArgs<'a>
impl<'a> RefUnwindSafe for RunArgs<'a>
impl<'a> Send for RunArgs<'a>
impl<'a> Sync for RunArgs<'a>
impl<'a> Unpin for RunArgs<'a>
impl<'a> UnsafeUnpin for RunArgs<'a>
impl<'a> UnwindSafe for RunArgs<'a>
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> 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> ⓘ
Converts
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> ⓘ
Converts
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