Added way to have multiple runners and created shell runner

This commit is contained in:
U-ENGINEERO\joppe.blondel
2025-10-23 16:17:09 +02:00
parent e89a6f815e
commit 8ad1b2539b
5 changed files with 86 additions and 62 deletions

19
runners/shell.lua Normal file
View File

@ -0,0 +1,19 @@
local core = require "core"
---@class M
local M = {
name = "shell"
}
function M:run(cmd, opts, name)
core.log("[jpdebug] Running shell command")
if cmd then
local proc = process.start(cmd, opts)
return proc
else
core.error("[jpdebug] command not specified for target %s", name)
end
end
return M