Skip to content

run

local run = require("@rodeo-client-lune/run")
EntryDescription
LogFilter
RunCodeOpts
RunResult

type LogFilter = {
enableWarn: boolean?,
enableError: boolean?,
enableInfo: boolean?,
enableOutput: boolean?,
enableLogs: boolean?,
}

type RunCodeOpts = {
source: string?,
file: string?,
sourcemap: string?,
target: string?,
showReturn: boolean?,
cacheRequires: boolean?,
verbose: boolean?,
scriptArgs: { string }?,
profile: string?,
logs: string?,
-- Write the script's return value to this host-side path. `.luau`/`.lua`
-- emits Luau source (e.g. `return { pos = Vector3.new(1,2,3) }`); any
-- other extension emits JSON-encoded tagged structs.
returnFile: string?,
processName: string?,
logFilter: LogFilter?,
}

type RunResult = {
ok: boolean,
output: string,
exitCode: number,
}