Skip to main content

wrap_command_with_toolchain

Function wrap_command_with_toolchain 

Source
pub fn wrap_command_with_toolchain(
    command: &str,
    toolchain: Option<&ToolchainInfo>,
) -> String
Expand description

Wrap a command to run with a specific toolchain.

If toolchain is provided, wraps the command with rustup run <toolchain>. Otherwise returns the original command unchanged.