MCPcopy Create free account
hub / github.com/PRQL/prql / run_io_command

Method run_io_command

prqlc/prqlc/src/cli/mod.rs:356–361  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

354 }
355
356 fn run_io_command(&mut self) -> std::result::Result<(), anyhow::Error> {
357 let (mut file_tree, main_path) = self.read_input()?;
358
359 self.execute(&mut file_tree, &main_path)
360 .and_then(|buf| Ok(self.write_output(&buf)?))
361 }
362
363 fn execute<'a>(&self, sources: &'a mut SourceTree, main_path: &'a str) -> Result<Vec<u8>> {
364 let main_path = main_path

Callers 1

runMethod · 0.80

Calls 3

read_inputMethod · 0.80
write_outputMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected