Skip to main content

Module cli

Module cli 

Source
Expand description

Command-line interface: argument definitions and the run entry point.

run is generic over its output and error sinks so it can be driven both by the real binary (locked stdout/stderr) and by tests (in-memory buffers). It returns the process exit code:

codemeaning
0every input was valid UTF-8
1every input was readable, but at least one was invalid
2at least one input could not be read securely

Structs§

Args
Validate whether files (or standard input) contain well-formed UTF-8, fast.

Functions§

run
Run the validation described by args, writing results to out and diagnostics to err. Returns the process exit code.