lune-luau-template/.lune/util/command.luau

15 lines
314 B
Text
Raw Normal View History

2024-07-08 16:17:28 +05:30
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,
}