Skip to main content

load_unified_graph_for_cli

Function load_unified_graph_for_cli 

Source
pub fn load_unified_graph_for_cli(
    root: &Path,
    config: &GraphLoadConfig,
    cli: &Cli,
    progress: SharedReporter,
) -> Result<CodeGraph>
Expand description

CLI-aware graph loader that enforces manifest-backed plugin semantics.

progress selects the reporter for the snapshot-load and source-build passes. Non-search subcommands pass no_op_reporter for the pre-#238 silent default; the search path passes crate::progress::PlainProgressReporter::for_search so --verbose / SQRY_LOG=info surface stage events.

ยงErrors

Returns an error if the workspace path is invalid, manifest-selected plugins cannot load the persisted snapshot, or the fallback source build fails.