fix: disable merging and rely on type being present
This commit is contained in:
parent
01cbee824a
commit
c27376c89b
|
@ -62,15 +62,10 @@ var appListCommand = &cli.Command{
|
|||
sort.Sort(config.ByServer(apps))
|
||||
tableCol := []string{"Server", "Type", "Name"}
|
||||
table := createTable(tableCol)
|
||||
table.SetAutoMergeCellsByColumnIndex([]int{0})
|
||||
for _, app := range apps {
|
||||
if app.Type == Type || Type == "" {
|
||||
// If type flag is set, check for it, if not, Type == ""
|
||||
tableRow := []string{app.File.Server, app.Type, app.Name}
|
||||
table.Append(tableRow)
|
||||
}
|
||||
|
||||
table.Append([]string{app.File.Server, app.Type, app.Name})
|
||||
}
|
||||
table.SetAutoMergeCells(true)
|
||||
table.Render()
|
||||
return nil
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue