Skip to main content

run

Function run 

Source
pub fn run() -> Result<(), SsgError>
Expand description

Executes the static site generation process.

Parses CLI arguments via Cli::parse_and_dispatch, then routes to either a subcommand handler (issue #527) or the legacy flag-driven pipeline. This function blocks indefinitely while the dev server is running.

ยงExamples

// `run()` reads from real argv and may start a dev server, so it's
// only ever called from `main()`. The signature is `Result<(), _>`.
fn main() -> Result<(), ssg::SsgError> {
    ssg::run()
}