(&mut self, name: &str)
| 63 | let script = fs::read_to_string(&path).map_err(|e| ScriptError::ReadFile { |
| 64 | path: path.clone(), |
| 65 | source: e, |
| 66 | })?; |
| 67 | self.parse_script(&script)?; |
| 68 | Ok(()) |
| 69 | } |
| 70 | |
| 71 | pub(crate) fn next_command(&mut self) -> Option<&Commands> { |
| 72 | let command = self.commands.get(self.current_block); |
| 73 | self.current_block += 1; |
| 74 | command |
| 75 | } |
| 76 | |
| 77 | pub(crate) fn set_explain(&mut self, explain: &str) { |
no test coverage detected