Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] k9s: install completions
@ 2024-06-07 15:50 ssnailed
  2024-06-07 20:40 ` [PR PATCH] [Updated] " ssnailed
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ssnailed @ 2024-06-07 15:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 476 bytes --]

There is a new pull request by ssnailed against master on the void-packages repository

https://github.com/ssnailed/void-packages master
https://github.com/void-linux/void-packages/pull/50733

k9s: install completions
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

A patch file from https://github.com/void-linux/void-packages/pull/50733.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-50733.patch --]
[-- Type: text/x-diff, Size: 1038 bytes --]

From 1b64bbd9c4853555daaf999d23d0e83c90c08a12 Mon Sep 17 00:00:00 2001
From: Luca Bilke <bilke@tralios.de>
Date: Fri, 7 Jun 2024 17:48:06 +0200
Subject: [PATCH] k9s: install completions

---
 srcpkgs/k9s/template | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/k9s/template b/srcpkgs/k9s/template
index 5a42f968ffcfec..eb361efff7788b 100644
--- a/srcpkgs/k9s/template
+++ b/srcpkgs/k9s/template
@@ -1,7 +1,7 @@
 # Template file for 'k9s'
 pkgname=k9s
 version=0.32.4
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/derailed/k9s"
 go_ldflags="-X ${go_import_path}/cmd.version=${version}"
@@ -14,3 +14,15 @@ checksum=597fa2c547437070a8993d1fb6fce91d696bd3731d37230feace3a2d3bfdb198
 
 # fix: collect2: fatal error: cannot find 'ld'
 export LDFLAGS="-fuse-ld=bfd"
+
+post_build() {
+	for shell in bash zsh fish; do
+		_build-k9s-xbps/bin/k9s completion $shell >k9s.$shell
+	done
+}
+
+post_install() {
+	for shell in bash zsh fish; do
+		vcompletion k9s.$shell $shell
+	done
+}

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

* Re: [PR PATCH] [Updated] k9s: install completions
  2024-06-07 15:50 [PR PATCH] k9s: install completions ssnailed
@ 2024-06-07 20:40 ` ssnailed
  2024-06-09 22:52 ` ssnailed
  2024-06-09 22:53 ` ssnailed
  2 siblings, 0 replies; 4+ messages in thread
From: ssnailed @ 2024-06-07 20:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 481 bytes --]

There is an updated pull request by ssnailed against master on the void-packages repository

https://github.com/ssnailed/void-packages master
https://github.com/void-linux/void-packages/pull/50733

k9s: install completions
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

A patch file from https://github.com/void-linux/void-packages/pull/50733.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-50733.patch --]
[-- Type: text/x-diff, Size: 1029 bytes --]

From 6cd7e6f340b36f47d3ff121c0f78e4b36c34280e Mon Sep 17 00:00:00 2001
From: Luca Bilke <bilke@tralios.de>
Date: Fri, 7 Jun 2024 17:48:06 +0200
Subject: [PATCH] k9s: install completions

---
 srcpkgs/k9s/template | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/k9s/template b/srcpkgs/k9s/template
index 5a42f968ffcfec..48a361ad9c5af0 100644
--- a/srcpkgs/k9s/template
+++ b/srcpkgs/k9s/template
@@ -1,7 +1,7 @@
 # Template file for 'k9s'
 pkgname=k9s
 version=0.32.4
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/derailed/k9s"
 go_ldflags="-X ${go_import_path}/cmd.version=${version}"
@@ -14,3 +14,15 @@ checksum=597fa2c547437070a8993d1fb6fce91d696bd3731d37230feace3a2d3bfdb198
 
 # fix: collect2: fatal error: cannot find 'ld'
 export LDFLAGS="-fuse-ld=bfd"
+
+post_build() {
+	for shell in bash zsh fish; do
+		go run main.go completion $shell >k9s.$shell
+	done
+}
+
+post_install() {
+	for shell in bash zsh fish; do
+		vcompletion k9s.$shell $shell
+	done
+}

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

* Re: [PR PATCH] [Updated] k9s: install completions
  2024-06-07 15:50 [PR PATCH] k9s: install completions ssnailed
  2024-06-07 20:40 ` [PR PATCH] [Updated] " ssnailed
@ 2024-06-09 22:52 ` ssnailed
  2024-06-09 22:53 ` ssnailed
  2 siblings, 0 replies; 4+ messages in thread
From: ssnailed @ 2024-06-09 22:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 481 bytes --]

There is an updated pull request by ssnailed against master on the void-packages repository

https://github.com/ssnailed/void-packages master
https://github.com/void-linux/void-packages/pull/50733

k9s: install completions
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

A patch file from https://github.com/void-linux/void-packages/pull/50733.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-50733.patch --]
[-- Type: text/x-diff, Size: 1089 bytes --]

From b0863a5ae011a75fea429ef5abf8895fc921e1a4 Mon Sep 17 00:00:00 2001
From: Luca Bilke <bilke@tralios.de>
Date: Fri, 7 Jun 2024 17:48:06 +0200
Subject: [PATCH] k9s: install completions

---
 srcpkgs/k9s/template | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/k9s/template b/srcpkgs/k9s/template
index 5a42f968ffcfec..da8f77169f31e9 100644
--- a/srcpkgs/k9s/template
+++ b/srcpkgs/k9s/template
@@ -1,7 +1,7 @@
 # Template file for 'k9s'
 pkgname=k9s
 version=0.32.4
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/derailed/k9s"
 go_ldflags="-X ${go_import_path}/cmd.version=${version}"
@@ -14,3 +14,19 @@ checksum=597fa2c547437070a8993d1fb6fce91d696bd3731d37230feace3a2d3bfdb198
 
 # fix: collect2: fatal error: cannot find 'ld'
 export LDFLAGS="-fuse-ld=bfd"
+
+pre_build() {
+	TARGET_GOARCH=$GOARCH go generate
+}
+
+post_build() {
+	for shell in bash zsh fish; do
+		go run main.go completion $shell >k9s.$shell
+	done
+}
+
+post_install() {
+	for shell in bash zsh fish; do
+		vcompletion k9s.$shell $shell
+	done
+}

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

* Re: [PR PATCH] [Updated] k9s: install completions
  2024-06-07 15:50 [PR PATCH] k9s: install completions ssnailed
  2024-06-07 20:40 ` [PR PATCH] [Updated] " ssnailed
  2024-06-09 22:52 ` ssnailed
@ 2024-06-09 22:53 ` ssnailed
  2 siblings, 0 replies; 4+ messages in thread
From: ssnailed @ 2024-06-09 22:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 481 bytes --]

There is an updated pull request by ssnailed against master on the void-packages repository

https://github.com/ssnailed/void-packages master
https://github.com/void-linux/void-packages/pull/50733

k9s: install completions
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

A patch file from https://github.com/void-linux/void-packages/pull/50733.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-50733.patch --]
[-- Type: text/x-diff, Size: 1029 bytes --]

From 4ff1a8116809f790f3e8994dccf64e0a071d63a8 Mon Sep 17 00:00:00 2001
From: Luca Bilke <bilke@tralios.de>
Date: Fri, 7 Jun 2024 17:48:06 +0200
Subject: [PATCH] k9s: install completions

---
 srcpkgs/k9s/template | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/k9s/template b/srcpkgs/k9s/template
index 5a42f968ffcfec..48a361ad9c5af0 100644
--- a/srcpkgs/k9s/template
+++ b/srcpkgs/k9s/template
@@ -1,7 +1,7 @@
 # Template file for 'k9s'
 pkgname=k9s
 version=0.32.4
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/derailed/k9s"
 go_ldflags="-X ${go_import_path}/cmd.version=${version}"
@@ -14,3 +14,15 @@ checksum=597fa2c547437070a8993d1fb6fce91d696bd3731d37230feace3a2d3bfdb198
 
 # fix: collect2: fatal error: cannot find 'ld'
 export LDFLAGS="-fuse-ld=bfd"
+
+post_build() {
+	for shell in bash zsh fish; do
+		go run main.go completion $shell >k9s.$shell
+	done
+}
+
+post_install() {
+	for shell in bash zsh fish; do
+		vcompletion k9s.$shell $shell
+	done
+}

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

end of thread, other threads:[~2024-06-09 22:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-07 15:50 [PR PATCH] k9s: install completions ssnailed
2024-06-07 20:40 ` [PR PATCH] [Updated] " ssnailed
2024-06-09 22:52 ` ssnailed
2024-06-09 22:53 ` ssnailed

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