fix: sort by server and type for app listing

This commit is contained in:
2021-07-26 19:47:44 +02:00
parent 8656ae947a
commit 5def18a9af
2 changed files with 13 additions and 1 deletions

View File

@ -59,7 +59,7 @@ var appListCommand = &cli.Command{
logrus.Fatal(err)
}
apps, err := config.GetApps(appFiles)
sort.Sort(config.ByServer(apps))
sort.Sort(config.ByServerAndType(apps))
tableCol := []string{"Server", "Type", "Name"}
table := createTable(tableCol)
table.SetAutoMergeCellsByColumnIndex([]int{0})