code / nomsu

Lines6.6K Lua5.1K PEG1.3K make117
2 others 83
Markdown60 Bourne Again Shell23
(20 lines)
1 #!/usr/bin/env nomsu -V7.0.0
2 ###
3 A tool to list installed third party Nomsu packages
5 Usage:
6 nomsu -t list
8 use "filesystem"
9 use "commandline"
10 use "shell"
12 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14 command line program with $args:
15 $packages = (=sh "ls \$(NOMSU PACKAGEPATH)")
16 say "Currently Installed:"
17 for $f in ($packages, lines):
18 if ($f != ""):
19 $f = ($f, with "%.nom$" -> "")
20 say " * \$f"