Skip to content
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

Ask for confirmation before updating cogs #4461

Open
wants to merge 2 commits into
base: V3/develop
Choose a base branch
from
Open

Ask for confirmation before updating cogs #4461

wants to merge 2 commits into from

Conversation

jake-walker
Copy link

@jake-walker jake-walker commented Oct 1, 2020

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

When running cog update it prompts the owner about which cogs and libraries will be updated and then asks for a confirmation before updating them (fixes #3446).

Here is the confirmation that is shown before updating:

This is what happens after confirming:

This uses the same code as the prompt for reloading which has been moved into an _ask() function. I also tried just asking the owner to type 'update' to confirm it (code here) which may work better?

@jake-walker jake-walker requested a review from Jackenmen as a code owner October 1, 2020 10:46
@jake-walker jake-walker changed the title Ask for confirmation before updating cogs (#3446) Ask for confirmation before updating cogs Oct 1, 2020
@Jackenmen Jackenmen self-assigned this Oct 1, 2020
@Jackenmen Jackenmen added Category: Cogs - Downloader This is related to the Downloader cog. Type: Enhancement Something meant to enhance existing Red features. labels Oct 1, 2020
@Jackenmen Jackenmen added this to the 3.4.1 milestone Oct 1, 2020
@Jackenmen Jackenmen removed this from the 3.4.1 milestone Oct 12, 2020
@Drapersniper Drapersniper added this to the 3.4.2 milestone Oct 22, 2020
@Jackenmen Jackenmen modified the milestones: 3.4.4, 3.4.5 Dec 15, 2020
@Jackenmen Jackenmen modified the milestones: 3.4.6, 3.4.7 Jan 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Cogs - Downloader This is related to the Downloader cog. Type: Enhancement Something meant to enhance existing Red features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"cog update" Should Prompt for Confirmation Before Updating
3 participants