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

Method as_command_line

src/executor/helpers/command.rs:136–144  ·  view source on GitHub ↗

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

(&self)

Source from the content-addressed store, hash-verified

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

Callers 3

get_shell_commandMethod · 0.80
wrap_with_envFunction · 0.80
run_build_commandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected