Skip to main content

RunArgs

Struct RunArgs 

Source
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: bool

Report sizes and stop.

§force: bool

Bypass the idle threshold. Lockfile verification still applies.

§yes: bool

Skip the confirmation prompt.

§daemon: bool

This 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: bool

Emit one JSON document instead of the human report.

§explain: bool

Explain 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.