Repository navigation
feat: improve list output to match container tool conventions - #40
Conversation
formatDigest strips the algo: prefix and truncates to 12 chars. formatCreated renders relative time using go-humanize. Both accept a noTrunc flag to preserve raw values. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Pavel Anni <[email protected]>
Default output now strips the sha256: prefix from digests and shows relative timestamps. Use --no-trunc for raw values. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Pavel Anni <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to data retention organization setting 📝 WalkthroughWalkthroughThis PR implements a ChangesList Output Formatting with --no-trunc Flag
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~20 minutes ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
Covers the len(digest) > 12 boundary condition. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Pavel Anni <[email protected]>
Summary
sha256:prefix from digest column, show 12 hex chars (matching Docker/Podman conventions)2026-04-29T22:07:29Z) usingdustin/go-humanize--no-truncflag to preserve full digest and raw RFC 3339 timestamps for scriptingCloses #23
Test plan
TestFormatDigest— 6 subtests: prefix stripping, other algorithms, short digest, no prefix, no-trunc, emptyTestFormatCreated— 4 subtests: no-trunc, empty, unparseable fallback, recent relative timemake lintpassesskillctl listandskillctl list --no-truncSummary by CodeRabbit
--no-truncflag to the list command for controlling output format details. By default, image digest hashes are truncated and creation timestamps are displayed in a human-readable format. Using--no-truncdisplays the complete digest hash and raw RFC3339 timestamps for advanced troubleshooting and workflows.