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 committed Sep 2, 2022
1 parent a613347 commit 71ec671
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 71ec671

Please sign in to comment.