MCPcopy Create free account
hub / github.com/SethGammon/Citadel / splitCommand

Function splitCommand

scripts/operating-proof.js:67–70  ·  view source on GitHub ↗
(command)

Source from the content-addressed store, hash-verified

65}
66
67function splitCommand(command) {
68 const matches = String(command || '').match(/"[^"]*"|'[^']*'|\S+/g) || [];
69 return matches.map((part) => part.replace(/^["']|["']$/g, ''));
70}
71
72function runCommand(projectRoot, command) {
73 const parts = splitCommand(command);

Callers 1

runCommandFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected