⚙️ Small fixups and enhancements

This commit is contained in:
Ettore Di Giacinto
2022-04-27 18:59:41 +02:00
committed by mudler
parent e70a543f42
commit c363c916d6
10 changed files with 95 additions and 78 deletions

View File

@@ -87,7 +87,7 @@ func printMatches(artefacts map[string]ArtifactMatch) {
d := pterm.TableData{{"Program Name", "Version", "License", "Repository"}}
for _, m := range artefacts {
d = append(d, []string{
fmt.Sprintf("%s/%s", m.Package.GetCategory(), m.Package.GetName()),
m.Package.HumanReadableString(),
pterm.LightGreen(m.Package.GetVersion()), m.Package.GetLicense(), m.Repository.GetName()})
}
pterm.DefaultTable.WithHasHeader().WithData(d).Render()