Adds --assume-yes to cache clear command to suppress prompts#6212
Adds --assume-yes to cache clear command to suppress prompts#6212colindean wants to merge 2 commits intopython-poetry:masterfrom
Conversation
|
Hi @colindean, thanks for the PR! We actually already have a global Any chance you two could sync up and you could convert this PR to one that fixes the existing option? |
|
I was summoned. you need to add default=True argument to self.confirm method call, for cleo to handle it properly as "if --no-interactions, agree". That's a small, easy fix.
|
|
Thanks for #6338! I couldn't get around to acting until today and I'm glad the better solution is in, now. |
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I had a perceived need to blow away my cache entirely and did so with:
but was annoyed by having to answer yes for each of the many caches I had. This PR adds an
--assume-yes|-ycommand likeapt's that skips prompts.Potential future work: Add a special syntax
poetry cache clear '*' --all --assume-yesorpoetry cache implodethat will clear all entries in all caches.Pull Request Check List