pub enum Commands {
Install {
name: String,
repo_slug: String,
tag: Option<String>,
kind: Filetype,
provider: Provider,
base_url: Option<String>,
channel: Channel,
match_pattern: Option<String>,
exclude_pattern: Option<String>,
desktop: bool,
ignore_checksums: bool,
},
Remove {
names: Vec<String>,
purge: bool,
},
Upgrade {
names: Option<Vec<String>>,
force: bool,
check: bool,
machine_readable: bool,
ignore_checksums: bool,
},
List {
name: Option<String>,
},
Probe {
repo_slug: String,
provider: Option<Provider>,
base_url: Option<String>,
channel: Channel,
limit: u32,
verbose: bool,
},
Config {
action: ConfigAction,
},
Package {
action: PackageAction,
},
Init {
clean: bool,
check: bool,
},
Import {
path: PathBuf,
skip_failed: bool,
},
Export {
path: PathBuf,
full: bool,
},
Doctor {
names: Vec<String>,
},
}Variants§
Install
Install a package from a GitHub release
Fields
Remove
Remove one or more installed packages
Upgrade
Upgrade installed packages to their latest versions
Fields
List
List installed packages and their metadata
Probe
Inspect releases visible from a provider without installing
Fields
Config
Manage upstream configuration
Fields
§
action: ConfigActionPackage
Manage package-specific settings and metadata
Fields
§
action: PackageActionInit
Initialize upstream by adding it to your shell PATH
Fields
Import
Import packages from a manifest or full snapshot
Fields
Export
Export packages to a manifest or full snapshot
Fields
Doctor
Run diagnostics to detect installation and integration issues
Implementations§
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnsafeUnpin for Commands
impl UnwindSafe for Commands
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> 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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.