Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kallsyms committed Jan 10, 2025
1 parent 7a1fd01 commit fdc1b3f
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/chat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1589,26 +1589,26 @@ impl App {
let proc_future = async {
let mut proc = if cfg!(not(target_os = "windows")) {
tokio::process::Command::new("sh")
.arg("-c")
.arg(&cmd.command)
.stdin(std::process::Stdio::null())
.stdout(std::process::Stdio::piped())
.stderr(std::process::Stdio::piped())
.current_dir(&repo_path)
.env("TERM", "dumb")
.spawn()
.unwrap()
.arg("-c")
.arg(&cmd.command)
.stdin(std::process::Stdio::null())
.stdout(std::process::Stdio::piped())
.stderr(std::process::Stdio::piped())
.current_dir(&repo_path)
.env("TERM", "dumb")
.spawn()
.unwrap()
} else {
tokio::process::Command::new("cmd")
.arg("/C")
.arg(&cmd.command)
.stdin(std::process::Stdio::null())
.stdout(std::process::Stdio::piped())
.stderr(std::process::Stdio::piped())
.current_dir(&repo_path)
.env("TERM", "dumb")
.spawn()
.unwrap()
.arg("/C")
.arg(&cmd.command)
.stdin(std::process::Stdio::null())
.stdout(std::process::Stdio::piped())
.stderr(std::process::Stdio::piped())
.current_dir(&repo_path)
.env("TERM", "dumb")
.spawn()
.unwrap()
};

let stdout = LinesStream::new(
Expand Down

0 comments on commit fdc1b3f

Please sign in to comment.