Show arrays in multiple lines in readable info

This commit is contained in:
2026-01-25 19:23:39 +02:00
parent 2072e3856f
commit 9f8a20c671
2 changed files with 9 additions and 3 deletions
+5 -2
View File
@@ -329,12 +329,15 @@ func (entry *BPMDatabaseEntry) CreateReadableInfo(rootDir string, humanReadableS
return
}
// Sort array
if sort {
// Sort array
slices.Sort(array)
}
ret = append(ret, fmt.Sprintf("%s: %s", label, strings.Join(array, ", ")))
ret = append(ret, label+":")
for _, val := range array {
ret = append(ret, " - "+val)
}
}
ret = append(ret, "Name: "+entry.Info.Name)
+4 -1
View File
@@ -546,7 +546,10 @@ func (pkgInfo *PackageInfo) CreateReadableInfo(rootDir string) string {
return
}
ret = append(ret, fmt.Sprintf("%s: %s", label, strings.Join(array, ", ")))
ret = append(ret, label+":")
for _, val := range array {
ret = append(ret, " - "+val)
}
}
ret = append(ret, "Name: "+pkgInfo.Name)