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

Config clean command sketch #17514

Draft
wants to merge 4 commits into
base: develop2
Choose a base branch
from

Conversation

AbrilRBS
Copy link
Member

@AbrilRBS AbrilRBS commented Dec 19, 2024

Changelog: (Feature | Fix | Bugfix): Describe here your pull request
Docs: https://github.com/conan-io/docs/pull/XXXX

To discuss with the team

Addresses the remaining point of #12842

Close #5935
Close #12842

@AbrilRBS AbrilRBS changed the title Clean command sketch Config clean command sketch Dec 19, 2024
Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

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

This is a very good idea, and necessary, thanks very much for doing it!

Maybe reset is a better name if the intent is to reset to "factory defaults"? I am fine with either name, just nitpicking.

@AbrilRBS AbrilRBS added this to the 2.12.0 milestone Dec 24, 2024
Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

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

Looking good

"""
Clean the configuration files in the Conan home folder. (Keeping installed packages)
"""
subparser.add_argument("-c", "--confirm", action='store_true',
Copy link
Member

Choose a reason for hiding this comment

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

Probably doesn't need confirmation. The confirmation only would make sense if applied as the one in other commands:

Do you want to clean "remotes.txt", yes/no?
Do you want to clean "settings.yml" yes/no?
...

So probably just drop the arg, not necessary for this command.

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