feat: prototype for app listing

This commit is contained in:
2021-07-27 21:25:08 +02:00
parent cf7a8d114a
commit 0e75350985
3 changed files with 38 additions and 19 deletions

View File

@ -81,8 +81,7 @@ var appListCommand = &cli.Command{
// If type flag is set, check for it, if not, Type == ""
tableRow = []string{app.File.Server, app.Type, app.Domain}
if Status {
stackName := strings.ReplaceAll(app.Name, ".", "_")
if status, ok := statuses[stackName]; ok {
if status, ok := statuses[app.StackName()]; ok {
tableRow = append(tableRow, status)
} else {
tableRow = append(tableRow, "unknown")