aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-list
blob: a161abfc750e660c3a17a4b393cf06d7621e4432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -ef
# List installed packages

parser_definition() {
    setup REST help:usage -- "usage: ${0##*/} [-c] [pkg...]"
    msg -- '' 'Options:'
    flag CURRENT -c --current -- "Use the current directory as a package"
    global_options
}

if [ -f ./cpt-lib ]; then . ./cpt-lib; else . cpt-lib; fi

[ "$CURRENT" ] && set -- "${PWD##*/}"

pkg_list "$@"