errors
Print Lem's failure catalogue: every functionality, the causes it declares and the functionalities it uses.
Invocation#
lem-cli errors [list [--markdown] | show <functionality>]Inputs and options#
- Bare, or list, prints the whole catalogue. --markdown after list prints each functionality's documentation section instead of JSON.
- show <functionality> prints one functionality, such as lem.library.add.
Output and state#
list prints the catalogue as wisent-errors' `errors list --json` prints every product's: `operations`, each with its entries, the functionalities it uses and every declared cause (code, exit status, sentences, test and documentation anchor), and `problems`, what is wrong with the catalogue itself.
show prints that one functionality the same way, with `met`: each cause it meets through the functionalities it uses, beside the functionality that declares it.
Nothing is read beyond Lem's own declarations, and nothing is written.
Refusals#
- Any other arguments refuse as `errors takes list [--markdown] or show <functionality>` (`lem.errors.errors-arguments`, exit 2).
- A functionality Lem does not declare refuses as `Lem declares no functionality <name>`, listing every one it declares (`lem.errors.functionality-unknown`, exit 2).