execute_code

Function execute_code 

Source
pub fn execute_code(
    code: &[String],
    language: Language,
    output_file: Option<&Path>,
    verbose: bool,
) -> Result<Vec<String>>
Expand description

Execute code and return the output lines.

If output_file is provided, the code is written to the file instead of being executed.