diff options
Diffstat (limited to 'ensure.lua')
-rw-r--r-- | ensure.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ensure.lua b/ensure.lua new file mode 100644 index 0000000..0dd264b --- /dev/null +++ b/ensure.lua @@ -0,0 +1,10 @@ +#!/usr/bin/env lua +local l = require "ensure.list" +local loud = { + identifier = l.default.identifier, + invalid = function (_, name) io.stderr:write(string.format("invalid package name: %q\n", name)) end, +} +local p = l.all(arg[1] or os.getenv("ENSURE") or "/etc/ensure.d", loud) +for _, name in pairs(p) do + print(name) +end |