Skip to main content

run

Function run 

Source
pub fn run() -> ExitCode
Expand description

Parse the command line and run the command; the exit code.

An exit of 1 is a verdict — an error in a file, a finding at deny, a failing test, a name that resolves to nothing (htl::verdict). A command that could not get as far as a verdict — a directory in no project, an htl.toml that does not parse, a file it cannot read, a flag it does not take — says why and exits 2, whichever command it was (clap exits 2 on a bad flag, and an Err from any command lands on the same arm).