Would it require a lot of new plumbing code to add a release list subcommand that would…
- User
Would it require a lot of new plumbing code to add a release list subcommand that would list all releases in addition to view that shows details on a single release
Assistant· claude-opus-5
I'll explore the release command implementation to see what's already available.
Assistant· claude-opus-5
The plumbing is almost all there already —
release.Registryalready hasListTags, andrelease.ListVersionsalready wraps it. Two design choices change how much new code is needed:Assistant· claude-opus-5
Short answer: no — very little new plumbing.
The seam is already built for this.
release.Registry(internal/release/artifact.go:55) already declaresListTags,release.ListVersions(artifact.go:126) already wraps it, andPushalready mirrors version/created/commit/notes onto the artifact manifest as annotations (artifact.go:79-87) precisely so a reader can see them without pulling the layer.Resolvereturns those annotations (internal/registry/resolve.go:39-45). No interface change, no new registry code, no new test infrastructure —registrytestandcreateFixturecover it.What's actually new: one internal file (
list.go, ~120 lines), one cmd file mirroringrelease_view.go, arenderReleasestabwriter function, and a shared prologue extracted out ofViewso both commands resolve component→releases-repo the same way. Roughly the size ofrelease viewitself.Two things genuinely aren't in the repo yet and are the only real work: (no semver or version-sort helper exists anywhere — I'd sort by the created annotation, newest-first, with the tag as a deterministic tiebreak) and the so truncation is never silent.
Assistant· claude-opus-5
Plan is written to
/Users/robinhultman/.claude/plans/would-it-require-a-deep-matsumoto.md.Assistant· claude-opus-5
Now let me write the shared prologue and rewrite
Viewon top of it.Assistant· claude-opus-5
Now the annotation key constants (so read and write can't drift):
Assistant· claude-opus-5
Now
list.go:Assistant· claude-opus-5
Now
renderReleases:Assistant· claude-opus-5
Now the cobra command:
Assistant· claude-opus-5
Fixing
Resolveso itsArtifactTypeis actually populated — it parses the manifest already but only took the field from the HEAD descriptor:Assistant· claude-opus-5
Full suite is green. Now the docs:
Assistant· claude-opus-5
Output looks right. Now the CLI surface checks from the plan:
Assistant· claude-opus-5
Let me review the full diff before wrapping up:
Assistant· claude-opus-5
Done. Answering the original question with the finished work: it took ~one new internal file plus one command file, and no new plumbing — the registry seam already had everything.
What shipped