Skip to content

Commit

Permalink
Improve 'cleanup' command output
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Sep 13, 2024
1 parent 1a1e45b commit 2eadd04
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/cmd_cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ func cleanupVersions(index *data.Index, dataDir string, keepVersions int) error
fmtc.NewLine()

for name, versions := range allVersions {
fmtc.Printf(" {s-}-{!} {*}%s{!}{s}:{!} ", name)
fmtc.Print(strings.Join(versions, "{s},{!} "))
fmtc.Printf(" {s-}{!} {*}%s{!}{s}:{!} ", name)
fmtc.Print(strings.Join(versions, "{s-},{!} "))
fmtc.NewLine()

versionNum += len(versions)
Expand Down Expand Up @@ -114,6 +114,8 @@ func cleanupVersions(index *data.Index, dataDir string, keepVersions int) error
spinner.Update("{s}[%d/%d]{!} Remove outdated versions", currentVersion, versionNum)
spinner.Done(true)

fmtc.NewLine()

return nil
}

Expand Down

0 comments on commit 2eadd04

Please sign in to comment.