diff options
author | Patrick Spek <p.spek@tyil.nl> | 2022-05-11 13:30:22 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2022-05-11 13:30:22 +0200 |
commit | 7eac078e1049493d708097af69f6894d609ec6a8 (patch) | |
tree | 300b09fea14d8098333892fa166a5f9ac2059d61 /lib/subcommands | |
parent | ca71525e575f809c77d84550a3e8abc100dfb5a4 (diff) |
Implement pkg subcommand
Diffstat (limited to 'lib/subcommands')
-rw-r--r-- | lib/subcommands/pkg.bash | 16 |
1 files changed, 16 insertions, 0 deletions
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 <p.spek@tyil.nl> +# +# SPDX-License-Identifier: AGPL-3.0-or-later + +subcommand() { + local action + + action="$1" ; shift + + for package in "$@" + do + pkg "$action" "$package" + done +} |