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

Discussion: Safer to ask user confirmation for rm cache? #67

Closed
anandhu-eng opened this issue Feb 9, 2025 · 2 comments
Closed

Discussion: Safer to ask user confirmation for rm cache? #67

anandhu-eng opened this issue Feb 9, 2025 · 2 comments

Comments

@anandhu-eng
Copy link
Contributor

Currently when rm cache --tags=... is invoked, the corresponding cache is being deleted without any user prompt. Would it be better if we ask for a confirmation from the user?

We could provide -f flag for force removal to the users. This would replicate the current behavior.

@arjunsuresh
Copy link
Contributor

That's an intentional behaviour but I guess "-f" is good to use. That way simple "rm" does a search and prompt to users what needs to be deleted.

@anandhu-eng
Copy link
Contributor Author

Closing the issue as the change is approved and merged.

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

No branches or pull requests

2 participants