MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / build

Method build

src/executor/helpers/command.rs:25–33  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23 }
24
25 pub fn build(self) -> Command {
26 let mut command = Command::new(&self.program);
27 command.args(&self.argv);
28 command.envs(&self.envs);
29 if let Some(cwd) = self.cwd {
30 command.current_dir(cwd);
31 }
32 command
33 }
34
35 pub fn arg<S: AsRef<OsStr>>(&mut self, arg: S) -> &mut Self {
36 self.argv.push(arg.as_ref().to_owned());

Callers 8

request_client.rsFile · 0.80
newMethod · 0.80
runMethod · 0.80
run_with_profilerFunction · 0.80
runMethod · 0.80
test_wrap_and_buildFunction · 0.80
run_with_sudoFunction · 0.80
newMethod · 0.80

Calls 3

argsMethod · 0.80
envsMethod · 0.80
current_dirMethod · 0.80

Tested by 1

test_wrap_and_buildFunction · 0.64