git-worktree-manager 0.0.29

CLI tool integrating git worktree with AI coding assistants
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Foreground launcher — run AI tool in current terminal.
use std::path::Path;
use std::process::Command;

/// Run command in the current terminal (blocking).
pub fn run(path: &Path, cmd: &str) {
    if cfg!(target_os = "windows") {
        let _ = Command::new("cmd")
            .args(["/C", cmd])
            .current_dir(path)
            .status();
    } else {
        let _ = Command::new("bash")
            .args(["-lc", cmd])
            .current_dir(path)
            .status();
    }
}