Commands
mehen --version --json is the fourth supported invocation — it emits a machine-readable shape that the
GitHub Action reads to stamp its sticky comment footer.
Why three commands
Each command matches one consumption pattern:metrics→ “tell me about this one file” — single-file IDE/CI hooks, code-review screencasts.diff→ “what changed on this PR” — the engine behind the GitHub Action sticky comment.top-offenders→ “where are the hottest files?” — repository scans for prioritization dashboards.
cargo xtask rather than the public CLI — see
Developers → Add a new language.
Output formats
All three commands accept a small format set. See Concepts → Output formats for the schema of each.Profiles
mehen metrics accepts a built-in --profile flag: default, ci, or strict. Profiles tune the
metric selector set and the threshold suggestions.
See also
- GitHub Action — production consumer of
mehen diff. - Concepts → Architecture — how each command flows through the engine.
- Concepts → Thresholds and diffs —
--fail-onand threshold inputs.