MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / ensureCommand

Function ensureCommand

scripts/restore-drill.js:42–52  ·  view source on GitHub ↗
(command)

Source from the content-addressed store, hash-verified

40}
41
42function ensureCommand(command) {
43 const result = spawnSync(command, ['--version'], {
44 encoding: 'utf8',
45 stdio: 'pipe',
46 shell: process.platform === 'win32'
47 });
48
49 if (result.status !== 0) {
50 throw new Error(`${command} is required but was not found in PATH.`);
51 }
52}
53
54function createTimestamp() {
55 const now = new Date();

Callers 1

runFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected