diff options
| author | Zach Sais <[email protected]> | 2025-06-16 01:13:39 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-16 06:13:39 +0000 |
| commit | cc7459e40388c8ede6a16277be94ea89e4fbfc6e (patch) | |
| tree | a1259d6f933a897378a217b43a5b2077865a1148 /packages/cli | |
| parent | 40fbb61a1ba3b0b16c0695c845d986b15768e0af (diff) | |
fix version release for Dockerfile build (#1080)
Diffstat (limited to 'packages/cli')
| -rw-r--r-- | packages/cli/src/config/config.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/cli/src/config/config.ts b/packages/cli/src/config/config.ts index b737daa4..7875f91e 100644 --- a/packages/cli/src/config/config.ts +++ b/packages/cli/src/config/config.ts @@ -23,6 +23,7 @@ import { import { Settings } from './settings.js'; import { getEffectiveModel } from '../utils/modelCheck.js'; import { Extension } from './extension.js'; +import { getCliVersion } from '../utils/version.js'; import * as dotenv from 'dotenv'; import * as fs from 'node:fs'; import * as path from 'node:path'; @@ -122,7 +123,8 @@ async function parseArguments(): Promise<CliArgs> { description: 'Enables checkpointing of file edits', default: false, }) - .version(process.env.CLI_VERSION || '0.0.0') // This will enable the --version flag based on package.json + .version(getCliVersion()) // This will enable the --version flag based on package.json + .alias('v', 'version') .help() .alias('h', 'help') .strict().argv; |
