pub async fn execute_command(
command: &str,
workdir: Option<&Path>,
timeout: Duration,
) -> ToolResult<BashOutput>Expand description
Executes a shell command with optional working directory and timeout.
Uses bash on Unix, cmd on Windows. Process tree is killed on timeout via:
- Windows: Job Objects
- Unix: Process groups