feat(cli): add upgrade command for feature versions#290
Conversation
…rades Implements a new `upgrade` command that checks for newer versions of devcontainer features and updates version references in devcontainer.json. Supports --dry-run flag for previewing changes and targeting specific features by name. Uses text replacement to preserve comments and formatting.
✅ Deploy Preview for devsydev canceled.
|
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Adds e2e test suite for the upgrade command with five scenarios: basic upgrade, dry-run preview, targeted feature upgrade, already up-to-date handling, and JSONC comment preservation. Uses in-process OCI registry following the outdated e2e test pattern.
Summary
upgradecommand that updates devcontainer feature version references indevcontainer.jsonto their latest available versionsoutdatedcommand infrastructure (version checking, OCI tag listing, semver parsing) for consistency--dry-runflag to preview upgrades without modifying files, and optional feature targeting (e.g.,devsy upgrade ghcr.io/devcontainers/features/go)