Skip to content

feat(inspect): implement inspect command - #15

Merged
jmgilman merged 1 commit into
masterfrom
feat/inspect-command
Jan 23, 2026
Merged

jmgilman merged 1 commit into
masterfrom
feat/inspect-command

Conversation

@jmgilman

Copy link
Copy Markdown
Contributor

Summary

  • Implement the blob inspect command per DESIGN.md
  • Display archive metadata without downloading file data: digest, file count, sizes, compression type, signatures, attestations, and annotations
  • Support both text and JSON output formats (--output json)
  • Alias resolution for references
  • Warn on referrer fetch errors (except ErrReferrersUnsupported which is silently ignored)

Test plan

  • Unit tests for helper functions (convertReferrers, warnReferrerError)
  • Output format tests (text and JSON)
  • Manual testing with docker.io/meigma/blob-test:v1
  • Linting passes (golangci-lint run)
# Text output
blob inspect docker.io/meigma/blob-test:v1

# JSON output
blob inspect --output json docker.io/meigma/blob-test:v1

🤖 Generated with Claude Code

Implement the `blob inspect` command per DESIGN.md to show archive
metadata without downloading file data.

Features:
- Display manifest digest, file count, sizes, compression type
- Show signatures and attestations (via referrers API)
- Show annotations
- Support both text and JSON output formats
- Alias resolution for references
- Warn on referrer fetch errors (except ErrReferrersUnsupported)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@jmgilman
jmgilman merged commit 2b51a30 into master Jan 23, 2026
5 checks passed
@jmgilman
jmgilman deleted the feat/inspect-command branch January 23, 2026 17:27
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.

1 participant