-
Notifications
You must be signed in to change notification settings - Fork 605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uv tool run
suggest valid commands when command is not found
#4997
Conversation
a429d3f
to
828a80e
Compare
Nice, thanks! |
if has_from { | ||
writeln!( | ||
printer.stdout(), | ||
"However, the following executables are available:", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are executables from sub-depencencies considered as available? For instance, uv tool run --from fastapi
, uvicorn
is also an available executable, but it is not listed here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we'll want a separate flag to opt-in to that, per #4994
Maybe we should even warn or error if someone uses an executable that's not provided by the --from
package?
Summary
Resolves #4979.
Test Plan
cargo test