Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] base-files: add zsh completions for vkpurge
@ 2024-02-10  8:00 classabbyamp
  2024-02-10  8:02 ` [PR PATCH] [Updated] " classabbyamp
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: classabbyamp @ 2024-02-10  8:00 UTC (permalink / raw)
  To: ml

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

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

https://github.com/classabbyamp/void-packages vkpurge-zsh-comp
https://github.com/void-linux/void-packages/pull/48638

base-files: add zsh completions for vkpurge
#### Testing the changes
- I tested the changes in this PR: **YES**


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-vkpurge-zsh-comp-48638.patch --]
[-- Type: text/x-diff, Size: 1719 bytes --]

From 26986bd6d2b818b9ad544f66aec9c5ddf7aee41b Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sat, 10 Feb 2024 02:56:34 -0500
Subject: [PATCH] base-files: update to 0.144

adds zsh completions for vkpurge
---
 srcpkgs/base-files/files/_vkpurge | 30 ++++++++++++++++++++++++++++++
 srcpkgs/base-files/template       |  5 +++--
 2 files changed, 33 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/base-files/files/_vkpurge

diff --git a/srcpkgs/base-files/files/_vkpurge b/srcpkgs/base-files/files/_vkpurge
new file mode 100644
index 0000000000000..adc5ae7b1f4e1
--- /dev/null
+++ b/srcpkgs/base-files/files/_vkpurge
@@ -0,0 +1,30 @@
+#compdef vkpurge
+
+_vkpurge() {
+	local line state
+
+	_arguments -C \
+		'1: :->subcmd' \
+		'*::kernel:->kernels'
+
+	case "$state" in
+	subcmd)
+		_values 'subcommand' \
+			'list[List removable kernel versions]' \
+			'rm[Remove removable kernel versions]'
+		;;
+	kernels)
+		case "$line[1]" in
+		list)
+			_arguments '*::version glob: '
+			;;
+		rm)
+			_values 'kernel' \
+				'all[All removable kernels]' \
+				$(vkpurge list all)
+			;;
+		esac
+		;;
+	esac
+
+}
diff --git a/srcpkgs/base-files/template b/srcpkgs/base-files/template
index c9db827fe55b4..64e756be34dee 100644
--- a/srcpkgs/base-files/template
+++ b/srcpkgs/base-files/template
@@ -1,7 +1,7 @@
 # Template file for 'base-files'
 pkgname=base-files
-version=0.143
-revision=4
+version=0.144
+revision=1
 bootstrap=yes
 depends="xbps-triggers"
 short_desc="Void Linux base system files"
@@ -84,6 +84,7 @@ do_install() {
 	# vkpurge
 	vbin ${FILESDIR}/vkpurge
 	vman ${FILESDIR}/vkpurge.8
+	vcompletion "${FILESDIR}"/_vkpurge zsh vkpurge
 
 	vbin ${FILESDIR}/lsb_release
 

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

end of thread, other threads:[~2024-02-12 16:42 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-10  8:00 [PR PATCH] base-files: add zsh completions for vkpurge classabbyamp
2024-02-10  8:02 ` [PR PATCH] [Updated] " classabbyamp
2024-02-10 16:33 ` 0x5c
2024-02-10 17:43 ` [PR REVIEW] " kymnob
2024-02-10 17:43 ` kymnob
2024-02-10 17:43 ` kymnob
2024-02-10 17:43 ` kymnob
2024-02-10 17:43 ` kymnob
2024-02-10 17:43 ` kymnob
2024-02-10 17:43 ` kymnob
2024-02-10 17:43 ` kymnob
2024-02-10 18:35 ` [PR PATCH] [Updated] " classabbyamp
2024-02-10 19:07 ` [PR REVIEW] " kymnob
2024-02-10 19:07 ` kymnob
2024-02-10 19:08 ` [PR PATCH] [Updated] " classabbyamp
2024-02-12 16:42 ` [PR PATCH] [Merged]: " classabbyamp

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