pub struct InstallArgs {Show 17 fields
pub sources: Vec<String>,
pub repo: Option<String>,
pub force: bool,
pub all_optional: bool,
pub scope: Option<InstallScope>,
pub local: bool,
pub global: bool,
pub save: bool,
pub type: Option<String>,
pub dry_run: bool,
pub build: bool,
pub frozen: bool,
pub explain: bool,
pub plan_json: bool,
pub retry: u32,
pub verbose: bool,
pub purl: bool,
}Expand description
Arguments for the install command.
Fields§
§sources: Vec<String>The package source identifier(s).
repo: Option<String>Install from a git repository (e.g. ‘Zillowe/Hello’, ‘gl:Zillowe/Hello’)
force: boolForce re-installation even if the package is already installed
all_optional: boolAccept all optional dependencies
scope: Option<InstallScope>The scope to install the package to
local: boolInstall packages to the current project (alias for –scope=project)
global: boolInstall packages globally for the current user (alias for –scope=user)
save: boolSave the package to the project’s zoi.yaml
type: Option<String>The type of package to build if building from source (e.g. ‘source’, ‘pre-compiled’).
dry_run: boolDo not actually perform the installation, just show what would be done
build: boolForce building from source even if a pre-compiled archive is available in the registry
frozen: boolEnforce zoi.lock exactly (project install only, no lockfile updates)
explain: boolExplain dependency selection and install decisions
plan_json: boolEmit machine-readable install plan JSON
retry: u32Retry failed downloads this many times (minimum 1)
verbose: boolShow additional install details (package origins, preflight info)
purl: boolUse PURL (Package URL) specification for resolving packages
Trait Implementations§
Source§impl Args for InstallArgs
impl Args for InstallArgs
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 Clone for InstallArgs
impl Clone for InstallArgs
Source§fn clone(&self) -> InstallArgs
fn clone(&self) -> InstallArgs
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InstallArgs
impl Debug for InstallArgs
Source§impl FromArgMatches for InstallArgs
impl FromArgMatches for InstallArgs
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 InstallArgs
impl RefUnwindSafe for InstallArgs
impl Send for InstallArgs
impl Sync for InstallArgs
impl Unpin for InstallArgs
impl UnsafeUnpin for InstallArgs
impl UnwindSafe for InstallArgs
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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