simplify toes config
This commit is contained in:
parent
1b563106fe
commit
6afefcec5b
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user