MCPcopy Create free account
hub / github.com/EvoMap/evolver / commandIncludesPath

Function commandIncludesPath

src/ops/lifecycle.js:393–402  ·  view source on GitHub ↗
(cmd, targetPath)

Source from the content-addressed store, hash-verified

391}
392
393function commandIncludesPath(cmd, targetPath) {
394 if (!cmd || !targetPath) return false;
395 var cmdNorm = String(cmd).replace(/\\/g, '/');
396 var candidates = [targetPath];
397 try { candidates.push(fs.realpathSync(targetPath)); } catch (_) {}
398 return candidates.some(function(candidate) {
399 var normalized = path.resolve(candidate).replace(/\\/g, '/');
400 return normalized && cmdNorm.includes(normalized);
401 });
402}
403
404function splitCommandLine(cmd) {
405 var tokens = [];

Callers 1

isCurrentLoopCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected