1
0

feat: show both release number and name for debian

This commit is contained in:
2023-05-18 22:26:42 +00:00
parent f0c82f9289
commit e767299222
2 changed files with 10 additions and 5 deletions

View File

@ -191,7 +191,12 @@ type DistroListCmd struct{}
func (cmd *DistroListCmd) Run() (err error) {
for _, d := range distro.List() {
fmt.Println(d.ID, strings.Title(d.Release))
if d.ID == distro.Debian {
d.Release = fmt.Sprintf("%d %s",
debian.ReleaseFromString(d.Release),
strings.Title(d.Release))
}
fmt.Println(d.ID, d.Release)
}
return
}