noqtis-report(1)
NAME
noqtis-report —
check a capsule and write a report of it
SYNOPSIS
noqtis report |
[-p | --pub
key.pub] [-f |
--format md |
txt] [-o |
--out file]
[-j | --json]
[--github] dir |
DESCRIPTION
noqtis report checks the capsule in
dir as
noqtis-check(1) does
and its data record as noqtis data check does, once,
and writes a report of both
(nqdrpt(3)): whether every
check passed and how many failed, each check of the capsule, then what the
record says of the data (sources, schemas, drift summaries, environment,
steps, recorded checks, commitments, citation) and each check of the record,
named
‘data.check’. A
folder that is not sealed fails: its report says so in place of the
capsule's checks.
In Markdown, a value from the record never breaks its line or its
table cell: a line break in it is a space, and each character Markdown could
read as markup (‘\ ` * _ [ ] < > | # ~ &
!’) gets one backslash before it. In plain text a line break
is a space too, and nothing else changes.
-p,--pubkey.pub- the key the seal must carry, as for noqtis-check(1); without it, the key inside the seal is trusted
-f,--formatmd|txt- Markdown (the default) or plain text
-o,--outfile- write the report to file instead of standard output
-j,--json- print, instead of the report (which
-ostill writes), one line of JSON:{"capsule":"<dir>","ok":<bool>,"status":"passed"|"failed", "sealed":<bool>,"total":<n>,"failed":<n>,"verified":<n>, "changed":<n>,"checks":[{"check":"<name>","ok":<bool>, "detail":"<text>"},...]}verifiedcounts the sealed files that match, andchangedthose changed or missing and the files added since the seal. --github- first print, for each failed check, a GitHub Actions workflow command
::error title=noqtis <check>::<dir>: <detail>with ‘
%’, carriage return and line feed (and in the title ‘:’ and ‘,’) written as ‘%25’, ‘%0D’, ‘%0A’, ‘%3A’ and ‘%2C’
EXIT STATUS
- 0
- every check passed
- 1
- a check failed, or the folder is not sealed
- 2
- a usage or file error, or a folder with neither a seal nor a data record
EXAMPLES
$ noqtis report -p release.pub -o report.md results $ noqtis report -f txt results | head -3 noqtis report: results Passed: 0 of 27 checks failed