show version in config
This commit is contained in:
parent
9c128eaddc
commit
0e3699da5a
|
|
@ -1,5 +1,6 @@
|
|||
import type { App } from '@types'
|
||||
import { generateTemplates, type TemplateType } from '%templates'
|
||||
import { readSyncState } from '%sync'
|
||||
import color from 'kleur'
|
||||
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs'
|
||||
import { basename, join } from 'path'
|
||||
|
|
@ -27,6 +28,9 @@ export async function configShow() {
|
|||
if (process.env.DEV) {
|
||||
console.log(` DEV=${process.env.DEV}`)
|
||||
}
|
||||
|
||||
const syncState = readSyncState(process.cwd())
|
||||
console.log(`Version: ${syncState ? color.bold(syncState.version) : color.gray('(not deployed)')}`)
|
||||
}
|
||||
|
||||
export async function infoApp(arg?: string) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user