mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 06:00:45 -06:00
sort packages
This commit is contained in:
parent
b32584b4dd
commit
ec68314102
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@ package oizys
|
|||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/charmbracelet/lipgloss"
|
||||
|
@ -46,6 +47,7 @@ func parsePackages(lines []string, desc string) *packages {
|
|||
}
|
||||
names[i] = name
|
||||
}
|
||||
sort.Strings(names)
|
||||
return &packages{names: names, pad: maxLen + 1, desc: desc}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue