Skip to content

Add upgrade subcommand for self-upgrading#1

Open
aiyijing wants to merge 3 commits intomasterfrom
feat/add-upgrade
Open

Add upgrade subcommand for self-upgrading#1
aiyijing wants to merge 3 commits intomasterfrom
feat/add-upgrade

Conversation

@aiyijing
Copy link
Owner

No description provided.

Signed-off-by: aiyijing <aiyijing@live.com>
}
latestSemVer, err := semver.ParseTolerant(latestVersion)
if err != nil {
exit.Error(reason.InetVersionUnavailable, "Unable to parse latest version", err)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above:

Should use a different reason or create a new one, this reason is related to the internet being unavailable, but this failure is related to a version parsing error.

@spowelljr
Copy link

spowelljr commented Jun 17, 2024

We'll need to flesh this out a bit more, I think it would be good to confirm with the user if they want to upgrade and provide a link the release notes so they can decide if they want to upgrade or not. Such as the typical [Y/n] option, and a -y flag can be added if they want to upgrade without being asked, or running in automation where user input can't be provided.

aiyijing and others added 2 commits June 18, 2024 11:00
Co-authored-by: Steven Powell <44844360+spowelljr@users.noreply.github.com>
Co-authored-by: Steven Powell <44844360+spowelljr@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants