Skip to content

Commit

Permalink
patch the ksctl self update cli
Browse files Browse the repository at this point in the history
Signed-off-by: Dipankar Das <[email protected]>
  • Loading branch information
dipankardas011 committed Aug 2, 2024
1 parent a684bcf commit b1851b5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli/cmd/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,11 @@ var selfUpdate = &cobra.Command{
}
vers = filterToUpgradeableVersions(vers)

if len(vers) == 0 {
logCli.Success(ctx, "You are already on the latest version", "version", Version)
os.Exit(0)
}

logCli.Print(ctx, "Available versions to update")
selectedOption, _ := pterm.DefaultInteractiveSelect.WithOptions(vers).Show()

Expand Down

0 comments on commit b1851b5

Please sign in to comment.