Skip to main content

run_command

Function run_command 

Source
pub(crate) fn run_command(command: &str, cwd: &str) -> Execution
Expand description

Run command in cwd through a shell.

pwsh on Windows, sh elsewhere, overridable with RTK_AGY_SHELL. Both take the command after -c. A shell that cannot be spawned is reported to the model as a tool error rather than taking the server down.