fix: disable merging and rely on type being present

This commit is contained in:
decentral1se 2021-07-26 19:16:38 +02:00
parent 01cbee824a
commit c27376c89b
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 2 additions and 7 deletions

View File

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