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))
|
sort.Sort(config.ByServer(apps))
|
||||||
tableCol := []string{"Server", "Type", "Name"}
|
tableCol := []string{"Server", "Type", "Name"}
|
||||||
table := createTable(tableCol)
|
table := createTable(tableCol)
|
||||||
|
table.SetAutoMergeCellsByColumnIndex([]int{0})
|
||||||
for _, app := range apps {
|
for _, app := range apps {
|
||||||
if app.Type == Type || Type == "" {
|
table.Append([]string{app.File.Server, app.Type, app.Name})
|
||||||
// If type flag is set, check for it, if not, Type == ""
|
|
||||||
tableRow := []string{app.File.Server, app.Type, app.Name}
|
|
||||||
table.Append(tableRow)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
table.SetAutoMergeCells(true)
|
|
||||||
table.Render()
|
table.Render()
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user