pub fn one_off(
op: Op,
input: Value,
cwd: &Path,
project: &Result<Project, (Code, String)>,
game: Option<&dyn GameTools>,
) -> ValueExpand description
The answer of the operation op (one of Op::ALL) to input, as
JSON: with the game’s tools game on project where it runs the
game; new makes its folder from cwd, and import reads from the
project’s root, or cwd outside one. Without the game’s tools or a
project, an operation that needs them says so, as the CLI does.