From: gbrlsnchs <gbrlsnchs@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] github-cli: install shell completion
Date: Mon, 21 Sep 2020 19:37:59 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-25013@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 339 bytes --]
There is a new pull request by gbrlsnchs against master on the void-packages repository
https://github.com/gbrlsnchs/void-packages github-cli-completion
https://github.com/void-linux/void-packages/pull/25013
github-cli: install shell completion
A patch file from https://github.com/void-linux/void-packages/pull/25013.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-github-cli-completion-25013.patch --]
[-- Type: text/x-diff, Size: 974 bytes --]
From e3f4b3167672403995d88088d356d3f305aa9cf0 Mon Sep 17 00:00:00 2001
From: Gabriel Sanches <gabriel@gsr.dev>
Date: Mon, 21 Sep 2020 13:28:53 -0300
Subject: [PATCH] github-cli: install shell completion
---
srcpkgs/github-cli/template | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/srcpkgs/github-cli/template b/srcpkgs/github-cli/template
index d1446631aeb..747a42be70d 100644
--- a/srcpkgs/github-cli/template
+++ b/srcpkgs/github-cli/template
@@ -1,7 +1,7 @@
# Template file for 'github-cli'
pkgname=github-cli
version=1.0.0
-revision=1
+revision=2
wrksrc="cli-${version}"
build_style=go
go_import_path="github.com/cli/cli/cmd/gh"
@@ -24,4 +24,10 @@ pre_build() {
post_install() {
vlicense LICENSE
+
+ # install shell completions
+ for shell_compl in bash fish zsh; do
+ ${DESTDIR}/usr/bin/gh completion -s ${shell_compl} > /tmp/completion.${shell_compl}
+ vcompletion /tmp/completion.${shell_compl} ${shell_compl} gh
+ done
}
next reply other threads:[~2020-09-21 17:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-21 17:37 gbrlsnchs [this message]
2020-09-21 18:23 ` gbrlsnchs
2020-09-21 18:34 ` ericonr
2020-09-21 18:53 ` [PR PATCH] [Updated] " gbrlsnchs
2020-09-21 19:15 ` gbrlsnchs
2020-09-23 17:35 ` gbrlsnchs
2020-09-23 18:00 ` ericonr
2020-09-23 18:08 ` [PR PATCH] [Updated] " gbrlsnchs
2020-09-23 19:24 ` gbrlsnchs
2020-09-23 19:27 ` [PR REVIEW] " ericonr
2020-09-23 20:11 ` [PR PATCH] [Updated] " gbrlsnchs
2020-09-23 20:20 ` gbrlsnchs
2020-09-23 20:23 ` gbrlsnchs
2020-09-23 20:26 ` gbrlsnchs
2020-09-23 21:31 ` gbrlsnchs
2020-09-23 22:14 ` [PR PATCH] [Merged]: " ericonr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-25013@inbox.vuxu.org \
--to=gbrlsnchs@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).