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

Method as_command_line

src/executor/helpers/command.rs:132–140  ·  view source on GitHub ↗

Returns the command line as a string for debugging/testing purposes

(&self)

Source from the content-addressed store, hash-verified

130
131 /// Returns the command line as a string for debugging/testing purposes
132 pub fn as_command_line(&self) -> String {
133 let mut parts: Vec<String> = vec![self.program.to_string_lossy().into_owned()];
134 parts.extend(
135 self.argv
136 .iter()
137 .map(|arg| arg.to_string_lossy().into_owned()),
138 );
139 shell_words::join(parts)
140 }
141}
142
143#[cfg(test)]

Callers 1

wrap_with_envFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected