Expand description
ssg audit subcommand handler.
Loads the site under --output (or the configured output_dir),
merges [audit] from ssg.toml over the default config, applies
CLI overrides (--gate, --severity, --fail-on, --skip-network,
--json, --junit, --explain), runs the crate::audit::AuditRunner
and renders + returns an exit-code-shaped result.
Enums§
- Outcome
- Outcome of running
run— the caller turns this into a process exit code (0 ==Outcome::Pass; 1 ==Outcome::Fail).
Functions§
- build_
subcommand - Builds the clap
Commandfor theauditsubcommand. Re-used bycli.rs::subcommand_appso the surface is wired in one place. - run
- Executes the audit subcommand against the parsed clap matches.
- run_
and_ dispatch - Tiny shim used by
lib.rs::run. Mapped toResult<(), SsgError>so the dispatcher’s call-site stays uniform across subcommands; the non-zero exit is surfaced by aprocess::exit(1)in the caller.