MCPcopy Create free account
hub / github.com/agent-tower/core / printVersion

Function printVersion

packages/server/src/cli.ts:119–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117}
118
119function printVersion() {
120 try {
121 const pkg = JSON.parse(
122 readFileSync(path.resolve(__dirname, '../package.json'), 'utf-8'),
123 );
124 console.log(pkg.version);
125 } catch {
126 console.log('unknown');
127 }
128}
129
130function getCommandOutput(error: unknown, key: 'stdout' | 'stderr'): string {
131 const output = (error as Partial<SpawnSyncReturns<Buffer>> | null)?.[key];

Callers 1

parseArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected