Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] github-cli: install shell completion
@ 2020-09-21 17:37 gbrlsnchs
  2020-09-21 18:23 ` gbrlsnchs
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: gbrlsnchs @ 2020-09-21 17:37 UTC (permalink / raw)
  To: ml

[-- 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
 }

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-09-23 22:14 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21 17:37 [PR PATCH] github-cli: install shell completion 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
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

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).