feat(cmd): add templates apply/publish/metadata/generate-docs commands#220
Conversation
✅ Deploy Preview for devsydev canceled.
|
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ 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 (8)
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 |
Implement a new `templates` command group with four subcommands for devcontainer template management via OCI registries: - apply: fetch template from OCI registry and scaffold devcontainer config - publish: package and push templates to OCI registry - metadata: fetch and display published template metadata - generate-docs: generate markdown documentation from template metadata Includes E2E tests for apply and metadata against ghcr.io/devcontainers/templates.
- Return error from json.MarshalIndent in publish instead of swallowing - Warn user when --features specified but no devcontainer.json found - Sort option keys for deterministic markdown output in generate-docs
…test Fixes goconst lint failures: --template-id (5x), --workspace-folder (3x), apply (3x).
Fixes goconst violations for "templates" (5x) and "ghcr.io/devcontainers/templates/go:latest" (3x).
a183449 to
b3ffe7b
Compare
Summary
Adds a new
templatescommand group with four subcommands for devcontainer template management via OCI registries:devcontainer-template.jsonmetadata for a published templateFollows existing cobra command patterns (mirrors
cmd/pro/pro.go). Reuses OCI pull infrastructure frompkg/devcontainer/feature/. Includes E2E tests forapplyandmetadataagainstghcr.io/devcontainers/templates.