From: gbrlsnchs <gbrlsnchs@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] github-cli: install shell completion
Date: Wed, 23 Sep 2020 22:20:15 +0200 [thread overview]
Message-ID: <20200923202015.PRzNnOqmK5WLB3OzdvG6nYXmVQO7-GW3f6YVAcWOoMo@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-25013@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 344 bytes --]
There is an updated 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: 1123 bytes --]
From d2b3ddafdc63bae9713d262a486488173dd94f1c 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 | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/srcpkgs/github-cli/template b/srcpkgs/github-cli/template
index d1446631aeb..8a05ab5a628 100644
--- a/srcpkgs/github-cli/template
+++ b/srcpkgs/github-cli/template
@@ -1,9 +1,10 @@
# Template file for 'github-cli'
pkgname=github-cli
version=1.0.0
-revision=1
+revision=2
wrksrc="cli-${version}"
build_style=go
+build_helper=qemu
go_import_path="github.com/cli/cli/cmd/gh"
go_ldflags="-X github.com/cli/cli/command.Version=v${version}"
short_desc="GitHub CLI tool"
@@ -22,6 +23,17 @@ pre_build() {
fi
}
+post_build() {
+ for shell in bash fish zsh; do
+ vtargetrun ${GOPATH}/bin/gh completion -s $shell > github-cli.$shell
+ done
+}
+
post_install() {
vlicense LICENSE
+
+ # install shell completions
+ for shell in bash fish zsh; do
+ vcompletion github-cli.$shell $shell gh
+ done
}
next prev parent reply other threads:[~2020-09-23 20:20 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-21 17:37 [PR PATCH] " gbrlsnchs
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 [this message]
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=20200923202015.PRzNnOqmK5WLB3OzdvG6nYXmVQO7-GW3f6YVAcWOoMo@z \
--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).