pub enum Commands {
Show 19 variants
Version,
List {
tool: Option<String>,
status: bool,
installed: bool,
available: bool,
},
Install {
tool: String,
version: Option<String>,
force: bool,
},
Update {
tool: Option<String>,
apply: bool,
},
SelfUpdate {
check: bool,
version: Option<String>,
},
Uninstall {
tool: String,
version: Option<String>,
force: bool,
},
Which {
tool: String,
all: bool,
},
Versions {
tool: String,
latest: Option<usize>,
prerelease: bool,
detailed: bool,
interactive: bool,
},
Switch {
tool_version: String,
global: bool,
},
Config {
command: Option<ConfigCommand>,
},
Search {
query: Option<String>,
category: Option<String>,
installed_only: bool,
available_only: bool,
format: OutputFormat,
verbose: bool,
},
Sync {
check: bool,
force: bool,
dry_run: bool,
verbose: bool,
no_parallel: bool,
no_auto_install: bool,
},
Init {
interactive: bool,
template: Option<String>,
tools: Option<String>,
force: bool,
dry_run: bool,
list_templates: bool,
},
Clean {
dry_run: bool,
cache: bool,
orphaned: bool,
all: bool,
force: bool,
older_than: Option<u32>,
verbose: bool,
},
Stats,
Plugin {
command: PluginCommand,
},
Shell {
command: ShellCommand,
},
Venv {
command: VenvCommand,
},
Global {
command: GlobalCommand,
},
}Variants§
Version
Show version information
List
List supported tools
Fields
Install
Install a specific tool version
Fields
Update
Update tools to latest versions
Fields
SelfUpdate
Update vx itself to the latest version
Fields
Uninstall
Uninstall tool versions (preferred over remove)
Fields
Which
Show which tool version is being used (preferred over where)
Versions
Show available versions for a tool (preferred over fetch)
Fields
Switch
Switch to a different version of a tool
Fields
Config
Configuration management
Fields
§
command: Option<ConfigCommand>Search
Search available tools
Fields
§
format: OutputFormatOutput format
Sync
Sync project tools from .vx.toml
Fields
Init
Initialize vx configuration for current project
Fields
Clean
Clean up system (preferred over cleanup)
Fields
Stats
Show package statistics and disk usage
Plugin
Plugin management commands
Fields
§
command: PluginCommandShell
Shell integration commands
Fields
§
command: ShellCommandVenv
Virtual environment management
Fields
§
command: VenvCommandGlobal
Global tool management
Fields
§
command: GlobalCommandTrait 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 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