Skip to content

fix: add butter projects show <id> (#6) - #8

Merged
ryanlitalien merged 2 commits into
mainfrom
fix/6-projects-show
Sep 23, 2026
Merged

ryanlitalien merged 2 commits into
mainfrom
fix/6-projects-show

Conversation

@ryanlitalien

Copy link
Copy Markdown
Member

Closes #6.

butter projects show <id> was listed in the help text but had no dispatcher branch, so it fell through to the unknown-subcommand error.

This adds projectsShow, mirroring buildsShow: GET /api/v1/projects/:id, plain and --json output (the flag works on either side of the id), a usage error when the id is missing, and the server's error surfaced on failure. The plain output prints the project's counts and the latest build on one line, or "none".

Tests cover plain output, no builds, --json in both positions, a missing id, and a 404.

`projects show <id>` was listed in the help text but had no dispatcher
branch, so it fell through to the unknown-subcommand error.

Add projectsShow, mirroring buildsShow: GET /api/v1/projects/:id, plain
and --json output (the flag works on either side of the id), a usage
error when the id is missing, and the server's error surfaced on
failure. The plain output prints the project's counts and the latest
build on one line, or "none".

Tests cover plain output, no builds, --json in both positions, a
missing id, and a 404.
The assets show subcommand has no dispatcher branch yet.
@ryanlitalien
ryanlitalien merged commit 550315c into main Sep 23, 2026
1 check passed
@ryanlitalien
ryanlitalien deleted the fix/6-projects-show branch September 23, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

butter projects show <id> is advertised in help but has no dispatcher branch

1 participant