MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / inlineScripts

Function inlineScripts

vmm/ui/build.mjs:119–125  ·  view source on GitHub ↗
(html, scripts)

Source from the content-addressed store, hash-verified

117}
118
119async function inlineScripts(html, scripts) {
120 let result = html;
121 for (const { placeholder, code } of scripts) {
122 result = result.replace(placeholder, `<script>\n${code}\n</script>`);
123 }
124 return result;
125}
126
127async function run(command, args) {
128 await new Promise((resolve, reject) => {

Callers 1

buildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected