mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 02:22:19 +00:00
Allow customizing the tool install directory with UV_TOOL_BIN_DIR
(#6207)
Requested in #6067
This commit is contained in:
parent
310412a2ff
commit
6bc8639ce8
6 changed files with 62 additions and 2 deletions
|
@ -2842,7 +2842,15 @@ pub struct ToolDirArgs {
|
|||
///
|
||||
/// By default, `uv tool dir` shows the directory into which the tool Python environments
|
||||
/// themselves are installed, rather than the directory containing the linked executables.
|
||||
#[arg(long)]
|
||||
///
|
||||
/// The tool executable directory is determined according to the XDG standard and is derived
|
||||
/// from the following environment variables, in order of preference:
|
||||
///
|
||||
/// - `$UV_TOOL_BIN_DIR`
|
||||
/// - `$XDG_BIN_HOME`
|
||||
/// - `$XDG_DATA_HOME/../bin`
|
||||
/// - `$HOME/.local/bin`
|
||||
#[arg(long, verbatim_doc_comment)]
|
||||
pub bin: bool,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue