Skip to content

Commit

Permalink
fix(cache clear): default response to True
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent authored and neersighted committed Sep 2, 2022
1 parent 232517e commit a401c87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/poetry/console/commands/cache/clear.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def handle(self) -> int:
len(files) for _path, _dirs, files in os.walk(str(cache_dir))
)

delete = self.confirm(f"<question>Delete {entries_count} entries?</>")
delete = self.confirm(f"<question>Delete {entries_count} entries?</>", True)
if not delete:
return 0

Expand All @@ -73,7 +73,7 @@ def handle(self) -> int:
self.line(f"No cache entries for {package}:{version}")
return 0

delete = self.confirm(f"Delete cache entry {package}:{version}")
delete = self.confirm(f"Delete cache entry {package}:{version}", True)
if not delete:
return 0

Expand Down

0 comments on commit a401c87

Please sign in to comment.