-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uvx/uv tool run: Add context message before listing available tools w…
…hen no arguments are provided (#7641) ## Summary Adds a helpful context message when `uvx` is run without arguments To clarify, it is displaying the installed tools. This addresses confusion, such as the one highlighted in issue #7348, by making the output more user-friendly and informative. Related #4024 ## Test Plan Updated the test snapshots to include the new output. Running the tests locally with `cargo nextest run` confirms that the tests pass. The CI pipeline should also pass. ### Manuel Testing **uvx** ```shell # Make sure you have the updated version of uv installed on your path. # cargo install --path ./crates/uv --force ❯ uvx Provide a command to invoke with `uvx <command>` or `uvx --from <package> <command>`. The following tools are already installed: black v24.8.0 - black - blackd ruff v0.6.7 - ruff See `uvx --help` for more information. ``` **uv tool list** ```shell # Make sure you have the updated version of uv installed on your path. # cargo install --path ./crates/uv --force ❯ uv tool list black v24.8.0 - black - blackd ruff v0.6.7 - ruff ``` **uv tool run** ```shell # Make sure you have the updated version of uv installed on your path. # cargo install --path ./crates/uv --force ❯ uv tool run Provide a command to invoke with `uv tool run <command>` or `uv tool run --from <package> <command>`. The following tools are already installed: black v24.8.0 - black - blackd ruff v0.6.7 - ruff See `uv tool run --help` for more information. ``` --- Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com> --------- Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
- Loading branch information
Showing
2 changed files
with
93 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters