lune-luau-template/.lune/util/command.luau
2024-07-08 16:17:28 +05:30

14 lines
314 B
Text

local process = require("@lune/process")
return {
run = function(cmd: string, ...: string)
local child = process.spawn(cmd, table.pack(...), {
stdio = "forward",
shell = true,
})
if not child.ok then
process.exit(child.code)
end
end,
}