fix: respect --type/-t logic for app listing

Reverts c27376c89b. Woops.
This commit is contained in:
decentral1se 2021-07-26 19:59:26 +02:00
parent 145e6326c9
commit fae5a87ce2
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 4 additions and 1 deletions

View File

@ -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