pub fn build_pipeline(
config: &SsgConfig,
opts: &RunOptions,
) -> (PluginManager, PluginContext, PathBuf, PathBuf)Expand description
Builds a fully-populated plugin manager and plugin context for a build.
Extracted so unit tests can construct the same wiring without needing to fake CLI argument parsing.
ยงExamples
use ssg::cmd::SsgConfig;
use ssg::pipeline::{build_pipeline, RunOptions};
let cfg = SsgConfig::default();
let opts = RunOptions::default();
let (_plugins, _ctx, build, site) = build_pipeline(&cfg, &opts);
assert_ne!(build, site);