MCPcopy Create free account
hub / github.com/1jehuang/jcode / build_shell_command

Function build_shell_command

crates/jcode-app-core/src/tool/bash.rs:498–512  ·  view source on GitHub ↗
(cmd_str: &str)

Source from the content-addressed store, hash-verified

496}
497
498fn build_shell_command(cmd_str: &str) -> TokioCommand {
499 #[cfg(windows)]
500 {
501 let mut cmd = TokioCommand::new("cmd.exe");
502 cmd.arg("/C").arg(cmd_str);
503 cmd
504 }
505 #[cfg(not(windows))]
506 {
507 let mut cmd = TokioCommand::new("bash");
508 cmd.arg("-c").arg(cmd_str);
509 configure_tool_scratch(&mut cmd);
510 cmd
511 }
512}
513
514#[cfg(unix)]
515fn build_detached_shell_wrapper(command: &str) -> StdCommand {

Calls 1

configure_tool_scratchFunction · 0.85