MCPcopy
hub / github.com/BuilderIO/ai-shell / runScript

Function runScript

src/prompt.ts:39–51  ·  view source on GitHub ↗
(script: string)

Source from the content-addressed store, hash-verified

37};
38
39async function runScript(script: string) {
40 p.outro(`${i18n.t('Running')}: ${script}`);
41 console.log('');
42 try {
43 await execaCommand(script, {
44 stdio: 'inherit',
45 shell: process.env.SHELL || true,
46 });
47 appendToShellHistory(script);
48 } catch (error) {
49 // Nothing needed, it'll output to stderr
50 }
51}
52
53async function getPrompt(prompt?: string) {
54 await initPromise;

Callers 1

runOrReviseFlowFunction · 0.85

Calls 1

appendToShellHistoryFunction · 0.90

Tested by

no test coverage detected