Skip to main content

run_repl

Function run_repl 

Source
pub fn run_repl(
    env_options: EnvOptions,
    show_prompt: bool,
    input: &mut dyn BufRead,
    output: &mut dyn Write,
    err_output: &mut dyn Write,
) -> Result<()>
Expand description

Drive the REPL on the given input/output streams. Used by main.rs. Suppresses prompts when stdin is not a TTY so piped input stays clean.