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

Add all to the Choco Source Remove command to remove all sources at once. #3239

Open
2 tasks done
pauby opened this issue Jun 30, 2023 · 1 comment
Open
2 tasks done

Comments

@pauby
Copy link
Member

pauby commented Jun 30, 2023

Checklist

  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my request.

Is Your Feature Request Related To A Problem? Please describe.

We should add the ability to remove all sources with a simple command in case a customer wants to start from scratch with sources (for instance, if they change repositories.)

Describe The Solution. Why is it needed?

Currently you have to know the name of each source to remove them as well as only being able to remove them one at at time.

Additional Context

To be consistent with other Chocolatey CLI commands, choco source remove all would be better.

However, we need to remember that we cannot remove the chocolatey.licensed source, as it will be put back again the next time Chocolatey CLI is run. To preserve any settings on this source (for example, if it has been disabled) we should not remove that source at all. We should output a warning to indicate that we haven't removed that source, but it can be disabled with choco source disable -n="'chocolatey.licensed'".

Related Issues

@TheCakeIsNaOH
Copy link
Member

This appears to be a dup of #1493

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants