Skip to content

Commit 96be7fa

Browse files
authored
feat(blueprint): add prune command (#47)
Added `rli devbox prune` - Pagination support - Fetches all blueprints with the given name across multiple pages - Blueprint categorization - Separates successful builds from failed builds - Smart sorting - Keeps N most recent successful builds (sorted by create_time_ms) - Interactive confirmation - Prompts user before deletion (unless --yes flag is used) - Dry-run mode - Preview deletions without making changes - Comprehensive error handling - Tracks individual deletion failures - Multiple output formats - Supports text, JSON, and YAML output - Detailed summary display - Shows what will be kept/deleted with timestamps Added the command with all specified options: - <name> - Required blueprint name parameter - --dry-run - Preview mode - -y, --yes - Auto-confirm - --keep <n> - Number of successful builds to keep (default: 1) - -o, --output [format] - Output format (text/json/yaml)
1 parent bbd8d1e commit 96be7fa

4 files changed

Lines changed: 393 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ rli blueprint list # List all blueprints
106106
rli blueprint create # Create a new blueprint
107107
rli blueprint get <name-or-id> # Get blueprint details by name or ID (...
108108
rli blueprint logs <name-or-id> # Get blueprint build logs by name or I...
109+
rli blueprint prune <name> # Delete old blueprint builds, keeping ...
109110
```
110111

111112
### Object Commands (alias: `obj`)

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)