MCPcopy Create free account
hub / github.com/clawshell/clawshell / command_output

Function command_output

src/platform/mod.rs:44–52  ·  view source on GitHub ↗
(
    command: &mut Command,
    command_name: &'static str,
)

Source from the content-addressed store, hash-verified

42}
43
44fn command_output(
45 command: &mut Command,
46 command_name: &'static str,
47) -> Result<std::process::Output, Error> {
48 command.output().map_err(|source| Error::CommandIo {
49 command: command_name,
50 source,
51 })
52}
53
54fn command_status(command: &mut Command, command_name: &'static str) -> Result<(), Error> {
55 let output = command_output(command, command_name)?;

Callers 4

command_statusFunction · 0.85
service_is_runningFunction · 0.85
create_system_userFunction · 0.85
service_is_runningFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected