Skip to content

envguard --summary: a final count line in the human report - #7

Merged
Gulliby merged 1 commit into
mainfrom
feature/envguard-summary-line
Nov 4, 2026
Merged

Gulliby merged 1 commit into
mainfrom
feature/envguard-summary-line

Conversation

@Gulliby

@Gulliby Gulliby commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Requested by gulliby

Before: the human report of envguard had no count of the keys it lists.

After: envguard --summary adds a last line to the human report, for example Summary: 1 missing, 1 empty, 2 extra. With --duplicates the line ends with the number of duplicate keys. The line is printed when the check passes too, and --quiet leaves out only the success line. --summary with --json or --github exits 2 with a message. The README describes the option. 198 tests pass (184 before); tsc --noEmit and biome check report no error.

How: src/cli.ts reads the option and src/format.ts writes the line. The new test file tests/summary.test.ts holds the cases. No existing test changes.

Accepted result of BAKED workflow run 7eca49cd-3d56-4fb5-80da-db84b6d429dd.

Baked-Run: 7eca49cd-3d56-4fb5-80da-db84b6d429dd
Baked-Snapshot: e75a97bf-576a-43fe-9176-6c563e40d62b
@Gulliby
Gulliby merged commit 86a9459 into main Nov 4, 2026
5 of 6 checks passed
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