Skip to content

Commit 916ca0d

Browse files
authored
fix(cli): remove app list empty field display (#855)
1 parent cb5d98c commit 916ca0d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cli/src/action/application/index.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@ import { ensureDirectory, exist } from '../../util/file'
1818

1919
import { refreshSecretConfig } from '../../config/secret'
2020
import { getEmoji } from '../../util/print'
21+
import { formatDate } from '../../util/format'
2122

2223
export async function list() {
2324
const table = new Table({
24-
head: ['appid', 'name', 'region', 'bundle', 'runtime', 'phase'],
25+
head: ['appid', 'name', 'state', 'createdAt'],
2526
})
2627
const data = await applicationControllerFindAll()
2728
for (let item of data) {
28-
table.push([item.appid, item.name, item.regionName, item.bundleName, item.runtimeName, item.phase])
29+
table.push([item.appid, item.name, item.state, formatDate(item.createdAt)])
2930
}
3031
console.log(table.toString())
3132
}

0 commit comments

Comments
 (0)