mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 18:30:43 -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 (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/charmbracelet/lipgloss"
|
"github.com/charmbracelet/lipgloss"
|
||||||
|
@ -46,6 +47,7 @@ func parsePackages(lines []string, desc string) *packages {
|
||||||
}
|
}
|
||||||
names[i] = name
|
names[i] = name
|
||||||
}
|
}
|
||||||
|
sort.Strings(names)
|
||||||
return &packages{names: names, pad: maxLen + 1, desc: desc}
|
return &packages{names: names, pad: maxLen + 1, desc: desc}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue