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:
Ahmed Ilyas 2024-07-01 16:51:59 +02:00 committed by GitHub
parent 65cd676da7
commit 081f092781
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 123 additions and 1 deletions

View file

@ -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)]