MCPcopy Create free account
hub / github.com/anus-dev/ANUS / getCliVersion

Function getCliVersion

packages/cli/src/utils/version.ts:10–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8import { getPackageJson } from './package.js';
9
10export async function getCliVersion(): Promise<string> {
11 const pkgJson = await getPackageJson();
12 return process.env['CLI_VERSION'] || pkgJson?.version || 'unknown';
13}

Callers 4

mainFunction · 0.85
aboutCommand.tsFile · 0.85
bugCommand.tsFile · 0.85
parseArgumentsFunction · 0.85

Calls 1

getPackageJsonFunction · 0.85

Tested by

no test coverage detected