run
local run = require("@rodeo-client-lune/run")Summary
Section titled “Summary”| Entry | Description |
|---|---|
| LogFilter | |
| RunCodeOpts | |
| RunResult |
LogFilter
Section titled “LogFilter”type LogFilter = { enableWarn: boolean?, enableError: boolean?, enableInfo: boolean?, enableOutput: boolean?, enableLogs: boolean?,}RunCodeOpts
Section titled “RunCodeOpts”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?,}RunResult
Section titled “RunResult”type RunResult = { ok: boolean, output: string, exitCode: number,}