mirror of
https://github.com/natnat-mc/moonbuild
synced 2026-05-16 10:11:14 +02:00
added _.cmdline and _.cmdlinerst, closes #20
This commit is contained in:
+7
-1
@@ -17,5 +17,11 @@ cmd.backend = backend
|
||||
cmd.parseargs = parseargs
|
||||
cmd.escape = escape
|
||||
|
||||
-- derived cmd functions
|
||||
_cmd = cmd.cmd
|
||||
_cmdrst = cmd.cmdrst
|
||||
cmd.cmdline = (cmdline) -> _cmd parseargs cmdline
|
||||
cmd.cmdlinerst = (cmdline) -> _cmdrst parseargs cmdline
|
||||
|
||||
-- the library itself
|
||||
setmetatable cmd, __call: => {'cmd', 'cmdrst', 'sh'}
|
||||
setmetatable cmd, __call: => {'cmd', 'cmdrst', 'cmdline', 'cmdlinerst', 'sh'}
|
||||
|
||||
Reference in New Issue
Block a user