pub fn lookup(
reference: &str,
scripts: &BTreeMap<String, ScriptRoot>,
) -> (Option<String>, Result<ScriptDeclaration, String>)Expand description
The declaration a ScriptOperator refers to (decision 293): reference is
<root>:<path>#<name> or /abs/path/schedr.toml#<name>, read from the copies of this
worker’s script roots scripts. Returns the script root it names, if it names one (the
DAG root then uses it, decision 304, found or not), and the declaration or why it can’t
be used.