-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Shell completion for uvx #7258
Labels
cli
Related to the command line interface
enhancement
New feature or improvement to existing functionality
Comments
ilyagr
added a commit
to ilyagr/uv
that referenced
this issue
Sep 12, 2024
ilyagr
added a commit
to ilyagr/uv
that referenced
this issue
Sep 12, 2024
ilyagr
added a commit
to ilyagr/uv
that referenced
this issue
Sep 12, 2024
ilyagr
added a commit
to ilyagr/uv
that referenced
this issue
Sep 12, 2024
charliermarsh
added
enhancement
New feature or improvement to existing functionality
cli
Related to the command line interface
labels
Sep 16, 2024
charliermarsh
pushed a commit
that referenced
this issue
Sep 17, 2024
## Summary Generate shell completion for uvx. Create a `uvx` toplevel command just for completion by combining `uv tool uvx` (hidden alias for `uv tool run`) with global arguments. This explicit combination is needed otherwise global arguments are missing (if they are missing, clap debug assertions fail when `uv tool run` arguments refer to global arguments in directives like conflicts with). Fixes #7258 ## Test Plan - Tested using bash using `eval "$(cargo run --bin uv generate-shell-completion bash)"`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
cli
Related to the command line interface
enhancement
New feature or improvement to existing functionality
uv doesn't ship with any shell completion for the
uvx
binary.Here's one solution for bash. Maybe there's a way to include it in uv, or it can help until there's official support.
Install into
~/.local/share/bash-completion/completions/uvx
The text was updated successfully, but these errors were encountered: