Skip to content
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

rustup: install completions for Cargo. #31150

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion srcpkgs/rustup/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'rustup'
pkgname=rustup
version=1.23.1
revision=3
revision=4
# rustup doesn't recognize this target
archs="~armv*-musl"
build_style=cargo
Expand All @@ -24,6 +24,10 @@ post_build() {
vtargetrun ./rustup completions zsh >rustup.zsh
vtargetrun ./rustup completions bash >rustup.bash
vtargetrun ./rustup completions fish >rustup.fish

# install completions for Cargo (which aren't available for fish)
vtargetrun ./rustup completions zsh cargo >cargo.zsh
vtargetrun ./rustup completions bash cargo >cargo.bash
}

do_install() {
Expand All @@ -33,6 +37,9 @@ do_install() {
vcompletion rustup.fish fish
vcompletion rustup.zsh zsh

vcompletion cargo.bash bash cargo
vcompletion cargo.zsh zsh cargo

vdoc README.md
vlicense LICENSE-APACHE
vlicense LICENSE-MIT
Expand Down