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

Method new

src/executor/helpers/command.rs:16–23  ·  view source on GitHub ↗
(program: S)

Source from the content-addressed store, hash-verified

14
15impl CommandBuilder {
16 pub fn new<S: AsRef<OsStr>>(program: S) -> Self {
17 Self {
18 program: program.as_ref().to_owned(),
19 argv: Vec::new(),
20 envs: BTreeMap::new(),
21 cwd: None,
22 }
23 }
24
25 pub fn build(self) -> Command {
26 let mut command = Command::new(&self.program);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected