Skip to content

Commit

Permalink
fixes flipped versions in update output
Browse files Browse the repository at this point in the history
  • Loading branch information
taukakao committed Nov 13, 2024
1 parent e08a516 commit 0277222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func renderPackageDiff(added, upgraded, downgraded, removed []diff.PackageDiff)
for _, pkg := range pkgSet.Set {
bulletItems = append(bulletItems, cmdr.BulletListItem{
Level: 1,
Text: fmt.Sprintf(pkgFmt, pkg.Name+strings.Repeat(" ", largestPkgName-len(pkg.Name)), pkg.NewVersion, pkg.PreviousVersion),
Text: fmt.Sprintf(pkgFmt, pkg.Name+strings.Repeat(" ", largestPkgName-len(pkg.Name)), pkg.PreviousVersion, pkg.NewVersion),
})
}
err := cmdr.BulletList.WithItems(bulletItems).Render()
Expand Down

0 comments on commit 0277222

Please sign in to comment.