feat(upgrade): add --releasenotes: show release notes and skip upgrading

This commit is contained in:
2024-05-21 13:47:11 +02:00
parent 70e2943301
commit e609924af0
2 changed files with 17 additions and 0 deletions

View File

@ -95,6 +95,16 @@ var OfflineFlag = &cli.BoolFlag{
Usage: "Prefer offline & filesystem access when possible",
}
// ReleaseNotes stores the variable from ReleaseNotesFlag.
var ReleaseNotes bool
// ReleaseNotesFlag turns on/off printing only release notes when upgrading.
var ReleaseNotesFlag = &cli.BoolFlag{
Name: "releasenotes, r",
Destination: &ReleaseNotes,
Usage: "Only show release notes",
}
// MachineReadable stores the variable from MachineReadableFlag
var MachineReadable bool