mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
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:
parent
65cd676da7
commit
081f092781
11 changed files with 123 additions and 1 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue