uv
uv copied to clipboard
`uv tool run` could be more helpful when a package name and tool don't match
macOS arm64, uv 0.4.24
$ uv tool run cyclonedx-bom
The executable `cyclonedx-bom` was not found.
warning: An executable named `cyclonedx-bom` is not provided by package `cyclonedx-bom`.
The following executables are provided by `cyclonedx-bom`:
- cyclonedx-py
Suggestions:
-
This help text could tell me what to do to make this work (the magic spell
uv tool run --from cyclonedx-bom cyclonedx-py).-
uv tool run cyclonedx-py --from cyclonedx-bomalready has this sort of warning in place:warning: An executable namedcyclonedx-pyis not provided by packagecyclonedx-pybut is available via the dependencycyclonedx-bom. Consider usinguv tool run --from cyclonedx-bom cyclonedx-pyinstead.
-
-
Alternatively, this could Do What I Mean and at least prompt me if I want to run the similarly-named single option, if not run it directly?
I like adding the uv tool run --from cyclonedx-bom cyclonedx-py hint at the end.