MCPcopy Index your code
hub / github.com/eventuallyconsultant/codegenr / start

Method start

codegenr/src/processor/file.rs:21–26  ·  view source on GitHub ↗
(&self, params: Vec<String>)

Source from the content-addressed store, hash-verified

19 FILE
20 }
21 fn start(&self, params: Vec<String>) -> Result<Box<dyn InstructionLineHandler>, ProcessorError> {
22 let file_path = params
23 .get(0)
24 .ok_or(ProcessorError::InstructionParameterMissing(FILE, "file_name"))?;
25 Ok(Box::new(FileLineHandler::new(&self.output_folder, file_path)?) as Box<dyn InstructionLineHandler>)
26 }
27 fn needs_closing(&self) -> bool {
28 true
29 }

Callers 2

processFunction · 0.45

Calls

no outgoing calls