MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / exec

Function exec

install/install.ts:27–39  ·  view source on GitHub ↗
(command: string, args?: ExecSyncOptions)

Source from the content-addressed store, hash-verified

25const warnings: [string, ...any[]][] = [];
26
27const exec = (command: string, args?: ExecSyncOptions) => {
28 try {
29 return {
30 output: execSync(command, args).toString(),
31 code: 0,
32 };
33 } catch (e) {
34 return {
35 code: e.status,
36 message: e.message,
37 };
38 }
39};
40const sleep = (t: number) => new Promise((r) => { setTimeout(r, t); });
41
42const shmFAQ = 'https://docs.hydro.ac/FAQ/#%E8%B0%83%E6%95%B4%E4%B8%B4%E6%97%B6%E7%9B%AE%E5%BD%95%E5%A4%A7%E5%B0%8F';

Callers 4

rollbackResolveFieldFunction · 0.70
StepsFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected