Skip to content

Show extension checksums in CLI output - #217

Merged
IlyaasK merged 4 commits into
mainfrom
hypeship/cli-extension-checksum
Aug 7, 2026
Merged

Show extension checksums in CLI output#217
IlyaasK merged 4 commits into
mainfrom
hypeship/cli-extension-checksum

Conversation

@IlyaasK

@IlyaasK IlyaasK commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • show extension checksums in human-readable list output
  • show the full checksum after extension get and upload operations
  • document checksum metadata in the CLI command reference

Why

Kernel now exposes the checksum of the exact uploaded extension archive. Showing it in the CLI lets operators identify and verify durable extension artifacts without dropping to a raw API request.

Implementation

List output adds a compact checksum column. Get and upload output print the checksum outside the width-bounded table so the complete digest remains available in normal terminal output. Legacy extensions without a checksum render -; JSON output remains the unmodified SDK response.

Verification

  • go test -short -timeout=2m ./...
  • go vet ./...
  • gofmt -l cmd
  • git diff --check
  • targeted mutation checks for list, get, and upload checksum output: 3/3 killed
  • crap4go: changed functions remain below the repository's existing CRAP hotspots

Note

Low Risk
Display-only CLI and docs changes around extension metadata; no auth, persistence, or API behavior changes.

Overview
Surfaces Kernel’s extension archive checksum in human-readable CLI output so operators can verify artifacts without raw API calls.

extensions list adds a Checksum column (missing values show - via util.FirstOrDash). extensions get and extensions upload print the full digest on its own line after the property table so long hashes aren’t clipped. Name/checksum empty-state handling is centralized with util.FirstOrDash instead of ad hoc - logic. --output json is unchanged (SDK response, including checksum). README extension commands are updated to mention checksum metadata.

Reviewed by Cursor Bugbot for commit db9cf98. Bugbot is set up for automated code reviews on this repo. Configure here.

IlyaasK added 3 commits August 6, 2026 16:37
Expose the API-provided SHA-256 checksum in list, get, and upload tables so operators can verify extension artifacts without switching to JSON output.
@IlyaasK
IlyaasK requested a review from Sayan- August 7, 2026 14:13
@IlyaasK
IlyaasK merged commit 3c77a11 into main Aug 7, 2026
7 checks passed
@IlyaasK
IlyaasK deleted the hypeship/cli-extension-checksum branch August 7, 2026 17:50
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.

2 participants