mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 10:34:40 +03:00
fix output of "mox checkupdate", and specify changes to be from newest to oldest
This commit is contained in:
10
main.go
10
main.go
@ -1634,8 +1634,14 @@ printed.
|
||||
if latest.After(current) {
|
||||
changelog, err := updates.FetchChangelog(context.Background(), changelogURL, current, changelogPubKey)
|
||||
xcheckf(err, "fetching changelog")
|
||||
fmt.Printf("Changelog\n\n")
|
||||
fmt.Println(changelog)
|
||||
if len(changelog.Changes) == 0 {
|
||||
log.Printf("no changes in changelog")
|
||||
return
|
||||
}
|
||||
fmt.Println("Changelog")
|
||||
for _, c := range changelog.Changes {
|
||||
fmt.Println("\n" + strings.TrimSpace(c.Text))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user