MCPcopy Create free account
hub / github.com/LutrisEng/datom-rs / command_wrapper

Function command_wrapper

datom-node/tests/jest.rs:7–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5use std::process::Command;
6
7fn command_wrapper() -> Command {
8 if cfg!(windows) {
9 let mut command = Command::new("powershell");
10 command.arg("-Command");
11 command
12 } else {
13 let mut command = Command::new("sh");
14 command.arg("-c");
15 command
16 }
17}
18
19fn run_command(command: &str) {
20 assert!(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected