mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 20:50:34 +00:00
parent
3453b977b8
commit
30d1662128
4 changed files with 13 additions and 10 deletions
|
|
@ -4,6 +4,9 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
export function getCliVersion(): string {
|
||||
return process.env.CLI_VERSION || 'unknown';
|
||||
import { getPackageJson } from './package.js';
|
||||
|
||||
export async function getCliVersion(): Promise<string> {
|
||||
const pkgJson = await getPackageJson();
|
||||
return process.env.CLI_VERSION || pkgJson?.version || 'unknown';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue