Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Show helpful error for `wt select` on Windows (#349)
Maximilian Roos9268c6dac5eb
diff --git a/src/cli.rs b/src/cli.rsindex 2d894ae7e..cccb0c1c4 100644--- a/src/cli.rs+++ b/src/cli.rs@@ -1843,7 +1843,7 @@ env = "cp {{ repo_root }}/.env.local .env"/// Interactive worktree selector////// Toggle preview tabs with 1/2/3 keys. Toggle preview visibility with alt-p.- #[cfg(unix)]+ #[cfg_attr(not(unix), command(hide = true))]#[command(after_long_help = r#"Interactive worktree picker with live preview. Navigate worktrees with keyboard shortcuts and press Enter to switch.<!-- demo: wt-select.gif 1600x800 -->diff --git a/src/main.rs b/src/main.rsindex 355a79643..8bec4a272 100644--- a/src/main.rs+++ b/src/main.rs@@ -1179,6 +1179,14 @@ fn main() {},#[cfg(unix)]Commands::Select => handle_select(),+ #[cfg(not(unix))]+ Commands::Select => {+ output::print(error_message("wt select is not available on Windows"))?;+ output::print(hint_message(cformat!(+ "To see all worktrees, run <bright-black>wt list</>; to switch directly, run <bright-black>wt switch <branch></>"+ )))?;+ std::process::exit(1);+ }Commands::List {subcommand,format,