Command line
Without installing, prefix with npx @nekoleapuki/pamphlet-cli, e.g. npx @nekoleapuki/pamphlet-cli build plan.md.
Exit codes
CI can judge on the exit code alone without parsing output.
Running pamphlet with no arguments prints usage and exits 2 — "you didn't say what to do" is a usage error, not a success.
Options
--format json is not a global option
Only lint actually switches output format on it.
build ignores it and always prints human-readable diagnostics; ast already writes JSON to stdout, and the flag merely stops it printing human-readable diagnostics to stderr.
Likewise --fail-on-warn and --continue-on-error have no effect on ast.
There is no message localisation yet. Codes, positions and documentation links are language-independent; the prose is not. Output shown on this page is verbatim, not translated.