pub enum Actions {
Add {
name: String,
alias: Option<String>,
asset_pattern: Option<String>,
file_filter: Option<String>,
pre_release: bool,
show: bool,
},
Remove {
name: String,
all: bool,
link_only: bool,
},
List {
installed: bool,
output: ListOutputType,
},
Sync,
Update {
name: Option<String>,
},
Completions {
shell: Shell,
},
Env {
name: Option<String>,
shell: Option<Shell>,
bare_path: bool,
},
}
Variants§
Add
Fields
name: String
name of the tool to install to the environment.
To install a specific version use name@version, for example:
cli/cli@v2.4.0
version should be a release tag.
alias: Option<String>
Alias to use instead of the repository name.
This is how you will call the tool on the command line.
asset_pattern: Option<String>
Pattern used to determine which file from the release to download.
This can be used to override the autodetect mechanism to determine which assets to download.
Add a tool to the designated environment
Remove
Fields
Remove a tool from the designated environment
List
Fields
installed: bool
List all installed versions of tools available to the environment instead of just the currently used one.
output: ListOutputType
Control how the list is output to the console
List tools available in the designated environment
Sync
sync all version information with listed in the env config file.
Update
Fields
Update tools to the latest version available from GitHub.
Completions
Generate shell completions for Vers to enable tab completions.
Env
Fields
show the exports required for setup.
Implementations§
Trait Implementations§
source§impl FromArgMatches for Actions
impl FromArgMatches for Actions
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 Actions
impl Subcommand for Actions
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
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self
can parse a specific subcommand