chocolatey / chocolatey/choco

[Request] Front-load all user input for `cup all`

Open
#1,261 2 comments 0 reactions 0 assignees View on GitHub
0 - Backlog Enhancement
Dominant language
C#
Stars
11.5k
Forks
961
PR merge metrics
No merged PRs in 30d

Description

In summary:

`cup all` currently iterates through each package, where it

1. Check package for updates. If found,
2. Asks for user confirmation (yes/no/print). If yes,
3. installs the package

Rinse and repeat for each package on the system.

I propose that step 3 is NOT run until steps 1-2 have been completed for all packages. That is to say,

1. Check package for updates. If found,
2. Asks for user confirmation (yes/no/print). If yes **or** no, remember the user's choice.
3. Don't act on the choice yet, repeat 1-2 for all packages on the system.
4. Now proceed with installing which packages were approved to install.

Installs/updates can sometimes be a lengthy process! Rather than having to sit with and interact with chocolatey through the entire update queue, it would be more efficient if chocolatey would get all interactive prompts out of the way as soon as possible. Tell chocolatey what to do, then set it loose!

Relevant snippets from gitter discussion:

chocolatey-choco-issue-1261-gitter-chat

It's not clear, but many of my comments on gitter are actually talking about this, AND another feature request, which already exists here https://github.com/chocolatey/choco/issues/218

UPDATE: As the Gitter rooms are now closed, I (@pauby) added a GIF of the chats that the Gitter links in this issue originally pointed at.

Contributor guide

Open the contributing guide

Research direction

Start at the `cup all` command entry point and trace how package checks, prompts, and installations are currently sequenced. Done means all package decisions are collected before any approved installations begin, while preserving the yes/no/print choices described in the issue; no test file is named in the payload.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.