aboutsummaryrefslogtreecommitdiff
path: root/lib/tools/list.nom
blob: 8e7c3ac4b0e74b8eff2d2f957ace76c26b5ef96c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env nomsu -V6
#
    A tool to list installed third party Nomsu packages
    
    Usage:
        nomsu -t list
    
use "filesystem"
use "commandline"
use "shell"

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

command line program with $args:
    $packages = (=sh "ls \$(NOMSU PACKAGEPATH)")
    say "Currently Installed:"
    for $f in ($packages, lines):
        if ($f != ""):
            $f = ($f, with "%.nom$" -> "")
            say "  * \$f"