MCPcopy Create free account
hub / github.com/corrode/write-yourself-a-shell / run_shell

Method run_shell

tests/all/utils.rs:46–55  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

44 }
45
46 fn run_shell(&self) -> Child {
47 let mut command = Command::new("cargo");
48 command.arg("run");
49 if let Some(example) = self.example {
50 command.args(["--example", example]);
51 }
52 command.stdin(Stdio::piped()).stdout(Stdio::piped());
53
54 command.spawn().unwrap()
55 }
56
57 fn write_stdin(&self, child: &mut Child) {
58 if let Some(stdin) = self.stdin {

Callers 1

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected