pub enum ToolsCommand {
Install {
spec: Option<String>,
force: bool,
},
List {
tool: Option<String>,
installed: bool,
all: bool,
},
Show,
Remove {
spec: String,
},
Clean,
Pin {
spec: Option<String>,
},
}Expand description
Subcommands of cargo hax tools.
Variants§
Install
Download and cache the tool versions the current project
resolves to, or a specific <tool>@<version>.
Fields
List
List the tool versions this release of hax can install with checksum verification.
Fields
Show
Show which tool versions are active in the current project, and where each one comes from.
Remove
Remove a tool version from the machine-wide cache.
Fields
Clean
Delete the entire tool cache. Later runs download what they need again.
Pin
Write version pins into the project’s hax.toml, creating the
file when missing.
Trait Implementations§
Source§impl Clone for ToolsCommand
impl Clone for ToolsCommand
Source§impl Debug for ToolsCommand
impl Debug for ToolsCommand
Source§impl<'de> Deserialize<'de> for ToolsCommand
impl<'de> Deserialize<'de> for ToolsCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ToolsCommand
Source§impl FromArgMatches for ToolsCommand
impl FromArgMatches for ToolsCommand
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 JsonSchema for ToolsCommand
impl JsonSchema for ToolsCommand
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ToolsCommand
impl PartialEq for ToolsCommand
Source§impl Serialize for ToolsCommand
impl Serialize for ToolsCommand
impl StructuralPartialEq for ToolsCommand
Source§impl Subcommand for ToolsCommand
impl Subcommand for ToolsCommand
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 Forget for ToolsCommand
impl Freeze for ToolsCommand
impl RefUnwindSafe for ToolsCommand
impl Send for ToolsCommand
impl Sync for ToolsCommand
impl Unpin for ToolsCommand
impl UnsafeUnpin for ToolsCommand
impl UnwindSafe for ToolsCommand
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