From fae5a87ce2befa55b73c3b903a37b9e901b20493 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Mon, 26 Jul 2021 19:59:26 +0200 Subject: [PATCH] fix: respect --type/-t logic for app listing Reverts c27376c89bded5313f5d801e631b516fc3ddfc0f. Woops. --- cli/app.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/app.go b/cli/app.go index c6b9c0977..53018c44d 100644 --- a/cli/app.go +++ b/cli/app.go @@ -64,7 +64,10 @@ var appListCommand = &cli.Command{ table := createTable(tableCol) table.SetAutoMergeCellsByColumnIndex([]int{0}) for _, app := range apps { - table.Append([]string{app.File.Server, app.Type, app.Domain}) + if app.Type == Type || Type == "" { + // If type flag is set, check for it, if not, Type == "" + table.Append([]string{app.File.Server, app.Type, app.Domain}) + } } table.Render() return nil