MCPcopy Create free account
hub / github.com/cargo-lambda/cargo-lambda / new_command

Function new_command

crates/cargo-lambda-interactive/src/command.rs:9–14  ·  view source on GitHub ↗
(cmd: &str)

Source from the content-addressed store, hash-verified

7
8#[cfg(target_os = "windows")]
9pub fn new_command(cmd: &str) -> Command {
10 let mut command = Command::new("cmd.exe");
11 command.arg("/c");
12 command.arg(cmd);
13 command
14}
15
16#[cfg(not(target_os = "windows"))]
17pub fn new_command(cmd: &str) -> Command {

Callers 3

open_code_editorFunction · 0.85
silent_commandFunction · 0.85

Calls 1

newFunction · 0.85

Tested by

no test coverage detected