MCPcopy
hub / github.com/di-sukharev/opencommit / subStep

Function subStep

out/cli.cjs:1175–1188  ·  view source on GitHub ↗
(p4, i3, ii)

Source from the content-addressed store, hash-verified

1173 resolve(subStep(p4, i3, 0));
1174 });
1175 const subStep = (p4, i3, ii) => new Promise((resolve, reject) => {
1176 if (ii === pathExt.length)
1177 return resolve(step(i3 + 1));
1178 const ext = pathExt[ii];
1179 isexe(p4 + ext, { pathExt: pathExtExe }, (er2, is) => {
1180 if (!er2 && is) {
1181 if (opt.all)
1182 found.push(p4 + ext);
1183 else
1184 return resolve(p4 + ext);
1185 }
1186 return resolve(subStep(p4, i3, ii + 1));
1187 });
1188 });
1189 return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
1190 };
1191 var whichSync = (cmd, opt) => {

Callers 1

stepFunction · 0.85

Calls 3

stepFunction · 0.85
isexeFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…