fix: respect --type/-t logic for app listing
Reverts c27376c89bded5313f5d801e631b516fc3ddfc0f. Woops.
This commit is contained in:
parent
145e6326c9
commit
fae5a87ce2
@ -64,7 +64,10 @@ var appListCommand = &cli.Command{
|
|||||||
table := createTable(tableCol)
|
table := createTable(tableCol)
|
||||||
table.SetAutoMergeCellsByColumnIndex([]int{0})
|
table.SetAutoMergeCellsByColumnIndex([]int{0})
|
||||||
for _, app := range apps {
|
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()
|
table.Render()
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user