From a5131051408a4f6e21eb8d251aaf8492288c6585 Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Tue, 22 Feb 2022 11:49:40 +0100 Subject: [PATCH] rustup: generate shell completions for cargo --- srcpkgs/rustup/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/srcpkgs/rustup/template b/srcpkgs/rustup/template index da9d2751ba4f..4497605a6ad0 100644 --- a/srcpkgs/rustup/template +++ b/srcpkgs/rustup/template @@ -1,7 +1,7 @@ # Template file for 'rustup' pkgname=rustup version=1.25.1 -revision=1 +revision=2 # rustup doesn't recognize this target archs="~armv*-musl" build_style=cargo @@ -31,6 +31,10 @@ post_build() { vtargetrun ./rustup completions zsh >rustup.zsh vtargetrun ./rustup completions bash >rustup.bash vtargetrun ./rustup completions fish >rustup.fish + + # generate cargo completions + vtargetrun ./rustup completions bash cargo >cargo.bash + vtargetrun ./rustup completions zsh cargo >cargo.zsh } do_install() { @@ -40,6 +44,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