Function go

Source
pub fn go<R: Read>(
    cli: Cli,
    stdout: Rc<RefCell<dyn Write + Send>>,
    stderr: Rc<RefCell<dyn Write + Send>>,
    stdin: Box<dyn Fn() -> R>,
) -> Result<()>
Expand description

Start JAWK and return a result.

§Arguments

  • cli - A the CLI that define this run.
  • stdout - A reference to the output stream to write the output.
  • stderr - A reference to the error stream to write the errors (if needed).
  • stdin - A reference to the input stream to read the inputs (if needed).

§Errors

Will return MainError in case of an error.