Commit 96be7fa
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments