Skip to main content

spawn_ssh

Function spawn_ssh 

Source
pub fn spawn_ssh(args: &[String]) -> Result<Child>
Expand description

Spawns an SSH process with the provided arguments.

Configures the process with:

  • Inherited stdin (for user input)
  • Piped stdout (for processing and highlighting)
  • Inherited stderr (for error messages)

§Arguments

  • args - CLI arguments provided by the user

§Returns

The spawned child process or an I/O error