From 7eac078e1049493d708097af69f6894d609ec6a8 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Wed, 11 May 2022 13:30:22 +0200
Subject: Implement pkg subcommand
---
lib/subcommands/pkg.bash | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
create mode 100644 lib/subcommands/pkg.bash
(limited to 'lib/subcommands/pkg.bash')
diff --git a/lib/subcommands/pkg.bash b/lib/subcommands/pkg.bash
new file mode 100644
index 0000000..ff5e33f
--- /dev/null
+++ b/lib/subcommands/pkg.bash
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+
+# SPDX-FileCopyrightText: 2022 Patrick Spek
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
+subcommand() {
+ local action
+
+ action="$1" ; shift
+
+ for package in "$@"
+ do
+ pkg "$action" "$package"
+ done
+}
--
cgit v1.1