Skip to main content

input_binds

Function input_binds 

Source
pub fn input_binds(
    modules: &[Rc<Module>],
    specs: &[String],
) -> Result<Vec<Bind>, (i32, Option<Diag>)>
Expand description

the documents named by --input, each bound to the module that declares its input (§10): name=doc.json; Err carries the exit code of a usage error (already printed) the documents named by –input, each bound to the module that declares its input (§10): name=doc.json. A usage error (bad spec, unknown input) is printed and returned as exit 2; a document that cannot be read or is not well-formed JSON is returned as one E6004 diagnostic (exit 1)