-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem:
Users often need to free up a specific amount of disk space immediately (e.g., 5GB) without worrying about the age of the resources. The current tool doesn't support prioritizing cleanup based on size.
Proposed Solution:
Add a "Top Largest" mode to prioritize cleaning the largest resources first.
Requirements:
-
New Flags:
--limit-space <size>: Clean resources until the specified amount of space is reclaimed (e.g.,5GB,500MB).--top <number>: Select the topNlargest resources to clean.
-
Logic:
- Sort scan results by size in descending order.
- Select items starting from the largest until the criteria (space limit or count limit) is met.
-
Implementation Details:
- Reuse existing size string parsing logic in
src/docker.ts. - Implement sorting and selection logic in
src/scan.ts. - Ensure the summary and confirmation prompts reflect the selected subset of resources.
- Reuse existing size string parsing logic in
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request