Skip to main content

run

Function run 

Source
pub fn run(
    bin_name: &'static str,
    version: &'static str,
    analyze: AnalyzeFn,
    default_exts: &[&str],
) -> i32
Expand description

Run the CLI end to end and return a process exit code.

bin_name is the front-end binary’s name (e.g. "cccc-es"); it sets the program name shown in --help/--version and the version string, so the shared Cli definition doesn’t bake in any one front-end’s identity. analyze lowers+scores a single file; default_exts is the extension set used when --ext is not given (e.g. &["ts", "tsx", "js", ...]).