MCPcopy Create free account
hub / github.com/freecodexyz/free-code / runCommand

Function runCommand

scripts/build.ts:52–65  ·  view source on GitHub ↗
(cmd: string[])

Source from the content-addressed store, hash-verified

50] as const
51
52function runCommand(cmd: string[]): string | null {
53 const proc = Bun.spawnSync({
54 cmd,
55 cwd: process.cwd(),
56 stdout: 'pipe',
57 stderr: 'pipe',
58 })
59
60 if (proc.exitCode !== 0) {
61 return null
62 }
63
64 return new TextDecoder().decode(proc.stdout).trim() || null
65}
66
67function getDevVersion(baseVersion: string): string {
68 const timestamp = new Date().toISOString()

Callers 2

getDevVersionFunction · 0.85
getVersionChangelogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected