particle-os-modules/modules/script/script.tsp
2025-01-30 14:00:08 -05:00

17 lines
511 B
Text

import "@typespec/json-schema";
using TypeSpec.JsonSchema;
@jsonSchema("/modules/script-v1.json")
@jsonSchema("/modules/script-latest.json")
model ScriptModule {
/** The script module can be used to run arbitrary bash snippets and scripts at image build time.
* https://blue-build.org/reference/modules/script/
*/
type: "script" | "script@v1" | "script@latest";
/** List of bash one-liners to run. */
snippets?: Array<string>;
/** List of script files to run. */
scripts?: Array<string>;
}