Skip to main content

copilot_binary

Function copilot_binary 

Source
pub fn copilot_binary() -> Result<PathBuf, Error>
Expand description

Find the copilot CLI binary on the system.

Checks COPILOT_CLI_PATH env var first, then searches PATH and common install locations (homebrew, nvm, nodenv, fnm, volta, cargo, etc.). Use COPILOT_CLI_NAME to override the binary name (default: copilot).