Skip to main content

Module audit

Module audit 

Source
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 Command for the audit subcommand. Re-used by cli.rs::subcommand_app so 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 to Result<(), SsgError> so the dispatcher’s call-site stays uniform across subcommands; the non-zero exit is surfaced by a process::exit(1) in the caller.