aboutsummaryrefslogtreecommitdiff
path: root/lib/tools/list.nom
blob: 77bb8a7153d5937736ef4601746ac3872986234c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env nomsu -V7.0.0

###
    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"