1
1
mirror of https://github.com/leon-ai/leon.git synced 2025-01-01 21:26:08 +03:00

chore: add Leon version in check report

This commit is contained in:
louistiti 2022-07-09 19:07:17 +08:00
parent ec77dd0f02
commit 239ce6fb36
No known key found for this signature in database
GPG Key ID: 7ECA3DD523793FE6

View File

@ -3,6 +3,7 @@ import fs from 'fs'
import { command } from 'execa'
import semver from 'semver'
import { version } from '@@/package.json'
import log from '@/helpers/log'
dotenv.config()
@ -37,7 +38,12 @@ export default () => new Promise(async (resolve, reject) => {
can_offline_stt: { title: 'Offline speech-to-text', type: 'warning', v: true }
}
log.title('Checking');
log.title('Checking')
// Leon version checking
log.info('Leon version')
log.success(`${version}\n`);
// Environment checking