simplify toes config

This commit is contained in:
Chris Wanstrath 2026-02-14 07:37:56 -08:00
parent 1b563106fe
commit 6afefcec5b

View File

@ -37,18 +37,10 @@ async function waitForState(name: string, target: string, timeout: number): Prom
export async function configShow() {
console.log(`Host: ${color.bold(HOST)}`)
const source = process.env.TOES_URL ? 'TOES_URL' : process.env.DEV ? 'DEV' : '(default)'
console.log(`Source: ${color.gray(source)}`)
if (process.env.TOES_URL) {
console.log(` TOES_URL=${process.env.TOES_URL}`)
}
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)')}`)
if (syncState) {
console.log(`Version: ${color.bold(syncState.version)}`)
}
}
export async function infoApp(arg?: string) {