MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / run_shell_command_with_log

Function run_shell_command_with_log

rust/src/shell.rs:46–51  ·  view source on GitHub ↗
(log: &Logger, command: Command)

Source from the content-addressed store, hash-verified

44}
45
46pub fn run_shell_command_with_log(log: &Logger, command: Command) -> Result<String, Error> {
47 log.debug(format!("Running command: {}", command.display()));
48 let output = run_shell_command(command)?;
49 log.debug(format!("Output: {:?}", output));
50 Ok(output)
51}
52
53pub fn run_shell_command(command: Command) -> Result<String, Error> {
54 let mut process = ProcessCommand::new(command.program);

Callers 1

Calls 2

run_shell_commandFunction · 0.85
debugMethod · 0.45

Tested by

no test coverage detected