-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement CRC CLI update #162
Conversation
Signed-off-by: Yevhen Vydolob <[email protected]>
src/install/crc-install.ts
Outdated
return undefined; | ||
} | ||
|
||
async doUpdate( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please call this something like AskForUpdate
provider.updateVersion(crcVersion.version); | ||
this.crcCliInfo.ignoreVersionUpdate = undefined; | ||
} else if (answer === 'Ignore') { | ||
this.crcCliInfo.ignoreVersionUpdate = updateInfo.newVersion.version.crcVersion; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to still install this update?
People might ignore it, meaning ignore for now
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They have Cancel
button.
I could rename Ignore
to Ignore %{version}
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does make sense if expressed this way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's put this in a new issue... but not implement this yet.
as I see this is also in the answer ===
check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The DoUpdate
is named different from expectation.
Please also 'log' with telemetry that a user has started an update, or ignored.
Signed-off-by: Yevhen Vydolob <[email protected]>
Update UI(button) are provided by P-D API.
Resolve #37
Demo:
Screen.Recording.2023-07-07.at.09.42.22.mp4