show version in config

This commit is contained in:
Chris Wanstrath 2026-02-11 21:08:38 -08:00
parent 9c128eaddc
commit 0e3699da5a

View File

@ -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) {