aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-list
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpt-list')
-rwxr-xr-xsrc/cpt-list12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cpt-list b/src/cpt-list
new file mode 100755
index 0000000..b808e74
--- /dev/null
+++ b/src/cpt-list
@@ -0,0 +1,12 @@
+#!/bin/sh -ef
+# List installed packages
+
+# shellcheck disable=1091
+if command -v cpt-lib >/dev/null; then . cpt-lib; else . ./cpt-lib; fi
+
+case "$1" in
+ --help|-h) out "usage: ${0##*/} [pkg...]"; exit 1 ;;
+ --version|-v) version ;;
+esac
+
+pkg_list "$@"