pub enum Commands {
Show 18 variants
Install {
repo_slug: String,
name: Option<String>,
tag: Option<String>,
kind: Filetype,
provider: Option<Provider>,
base_url: Option<String>,
channel: Channel,
match_pattern: Option<String>,
exclude_pattern: Option<String>,
desktop: bool,
trust_mode: TrustMode,
dry_run: bool,
},
Build {
repo_slug: String,
name: Option<String>,
tag: Option<String>,
branch: Option<String>,
provider: Option<Provider>,
base_url: Option<String>,
channel: Channel,
desktop: bool,
build_profile: Option<BuildProfile>,
dry_run: bool,
},
Remove {
names: Vec<String>,
purge: bool,
force: bool,
dry_run: bool,
},
Rollback {
action: RollbackAction,
},
Reinstall {
names: Vec<String>,
trust_mode: TrustMode,
force: bool,
dry_run: bool,
},
Upgrade {
names: Option<Vec<String>>,
force: bool,
check: bool,
machine_readable: bool,
json: bool,
trust_mode: TrustMode,
dry_run: bool,
},
List {
name: Option<String>,
json: bool,
},
Changelog {
name: String,
from_tag: Option<String>,
to_tag: Option<String>,
},
Probe {Show 13 fields
repo_slug: String,
name: Option<String>,
provider: Option<Provider>,
base_url: Option<String>,
channel: Channel,
limit: Option<u32>,
tag: Option<String>,
verbose: bool,
include_incompatible: bool,
json: bool,
desktop: bool,
trust_mode: TrustMode,
dry_run: bool,
},
Search {
query_words: Vec<String>,
provider: Option<Provider>,
base_url: Option<String>,
limit: u32,
language: Option<String>,
topic: Option<String>,
min_stars: Option<u64>,
max_stars: Option<u64>,
pushed_after: Option<NaiveDate>,
include_forks: bool,
include_archived: bool,
json: bool,
},
Find {Show 19 fields
query_words: Vec<String>,
provider: Option<Provider>,
base_url: Option<String>,
limit: u32,
language: Option<String>,
topic: Option<String>,
min_stars: Option<u64>,
max_stars: Option<u64>,
pushed_after: Option<NaiveDate>,
include_forks: bool,
include_archived: bool,
name: Option<String>,
kind: Filetype,
channel: Channel,
match_pattern: Option<String>,
exclude_pattern: Option<String>,
desktop: bool,
trust_mode: TrustMode,
dry_run: bool,
},
Config {
action: ConfigAction,
},
Package {
action: PackageAction,
},
Hooks {
action: HooksAction,
},
Import {
path: PathBuf,
skip_failed: bool,
import_as: Option<ImportAs>,
},
Export {
path: PathBuf,
full: bool,
},
Migrate,
Doctor {
names: Vec<String>,
verbose: bool,
fix: bool,
json: bool,
},
}Variants§
Install
Install a package from an upstream release source
Fields
name: Option<String>Name to register the application under (falls back to git repository name when omitted)
Build
Build and install from source for release tags without artifacts
Fields
name: Option<String>Name to register the application under (falls back to git repository name when omitted)
build_profile: Option<BuildProfile>Build profile used to compile/install from source (auto-detected when omitted)
Remove
Remove one or more installed packages
Fields
Rollback
Manage stored rollback artifacts
Fields
action: RollbackActionReinstall
Reinstall one or more packages (remove then install)
Fields
Upgrade
Upgrade installed packages to their latest versions
Fields
List
List installed packages and their metadata
Fields
Changelog
Show upstream release notes for an installed package
Fields
Probe
Probe a repository/source, choose an asset, and install it
Fields
name: Option<String>Name to register the application under (prompts with inferred default when omitted)
Search
Search provider repositories by keyword(s)
Fields
Find
Search repositories interactively and install a selected result
Fields
Config
Manage upstream configuration
Fields
action: ConfigActionPackage
Manage package-specific behavior
Fields
action: PackageActionHooks
Manage shell integration hooks and local upstream data
Fields
action: HooksActionImport
Import trusted keys, package metadata manifests, or full snapshots
Fields
Export
Export packages to a manifest or full snapshot
Fields
Migrate
Migrate local upstream data after breaking changes
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>
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>
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
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
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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