• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

codozor / authk / 19833827610
54%

Build:
DEFAULT BRANCH: main
Ran 01 Dec 2025 06:51PM UTC
Jobs 1
Files 8
Run time 42min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Dec 2025 06:49PM UTC coverage: 51.731% (+11.3%) from 40.417%
19833827610

push

github

SebastienLaurent-CF
✨ feat(inspect): Add --json flag and human-readable timestamps

This commit introduces significant improvements to the `inspect` command:

- **New Feature: `--json` flag**:
  A new `--json` flag has been added to the `inspect` command, allowing users to output the decoded JWT header and payload as a valid, uncolored JSON object. This facilitates machine-readable output for scripting and integration with other tools.

- **Human-readable Timestamps**:
  The default (non-JSON) output now automatically converts common epoch timestamps (e.g., `exp`, `iat`, `nbf`, `auth_time`, `updated_at`) in the JWT payload to human-readable date and time strings, displayed alongside the original epoch value. This greatly enhances readability for quick inspections.

- **Improved Readability for Dates**:
  The human-readable date appended to epoch timestamps is now rendered in a fainter color to distinguish it from the primary numerical value, improving visual clarity.

- **Documentation Updates**:
  The `README.md` and the `inspect` command's `--help` text have been updated to reflect the new `--json` flag and the enhanced output format.

- **Tests**:
  Added a unit test for the `decodeSegment` helper function and ensured all existing tests pass with the new changes.

25 of 49 new or added lines in 1 file covered. (51.02%)

269 of 520 relevant lines covered (51.73%)

1.58 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
24
50.79
50.79% cmd/authk/inspect.go
Jobs
ID Job ID Ran Files Coverage
1 19833827610.1 01 Dec 2025 06:51PM UTC 8
51.73
GitHub Action Run
Source Files on build 19833827610
  • Tree
  • List 8
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 42c961a5 on github
  • Prev Build on main (#19803261734)
  • Next Build on main (#19833928604)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc