Add tool dir and toolchain dir commands (#4695)
## Summary Resolves #4483 Resolves #4484 ## Test Plan `cargo test` ```sh ❯ cargo run -- toolchain dir warning: `uv toolchain dir` is experimental and may change without warning. /Users/ahmedilyas/Library/Application Support/uv/toolchains ❯ cargo run -- tool dir warning: `uv tool dir` is experimental and may change without warning. /Users/ahmedilyas/Library/Application Support/uv/tools ```
This commit is contained in:
@@ -1889,6 +1889,8 @@ pub enum ToolCommand {
|
||||
List(ToolListArgs),
|
||||
/// Uninstall a tool.
|
||||
Uninstall(ToolUninstallArgs),
|
||||
/// Show the tools directory.
|
||||
Dir,
|
||||
}
|
||||
|
||||
#[derive(Args)]
|
||||
@@ -2013,6 +2015,9 @@ pub enum ToolchainCommand {
|
||||
/// Search for a toolchain
|
||||
#[command(disable_version_flag = true)]
|
||||
Find(ToolchainFindArgs),
|
||||
|
||||
/// Show the toolchains directory.
|
||||
Dir,
|
||||
}
|
||||
|
||||
#[derive(Args)]
|
||||
|
||||
Reference in New Issue
Block a user