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

15 lines
314 B
Text
Raw Normal View History

2024-07-08 11:47:28 +01:00
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,
}