Expand description
Library surface for the bca CLI.
Exists so the workspace xtask crate can render man pages from the
same clap::Command tree that bca parses at runtime — the binary
main is a one-liner that delegates to run.
§Embedder contract
This crate is published to crates.io to support man-page generation
and to keep the binary’s main trivial; it is not a re-entrant
library API. run and the internal helpers it calls
(die / die_io, run_check, etc.) terminate the calling process
via std::process::exit on user-input errors (bad threshold
specs, missing paths, parser failures, broken pipes, and so on)
and on the check subcommand’s “thresholds exceeded” exit-2 path.
Hosting run inside another process will tear that process down
without unwinding. If you need a re-entrant entry point, drive the
big_code_analysis library crate directly.
Structs§
- Cli
- Analyze source code.
Functions§
- run
- Parse
std::env::args_os()and execute the selectedbcasubcommand. Intended to be called from thebcabinary’smain, which is a one-liner over this function.