MCPcopy Create free account
hub / github.com/modem-dev/hunk / run

Function run

bin/hunk.cjs:28–41  ·  view source on GitHub ↗
(target, args)

Source from the content-addressed store, hash-verified

26}
27
28function run(target, args) {
29 ensureExecutable(target);
30 const result = childProcess.spawnSync(target, args, {
31 stdio: "inherit",
32 env: process.env,
33 });
34
35 if (result.error) {
36 console.error(result.error.message);
37 process.exit(1);
38 }
39
40 process.exit(typeof result.status === "number" ? result.status : 1);
41}
42
43function hostCandidates() {
44 const platformMap = {

Callers 3

hunk.cjsFile · 0.70
measureMsFunction · 0.50
measureMsFunction · 0.50

Calls 1

ensureExecutableFunction · 0.85

Tested by

no test coverage detected