Skip to main content

run

Function run 

Source
pub async fn run() -> Result<()>
Expand description

Runs ssh-cli from the command-line arguments.

Entry point called by main.rs. It:

  1. Registers the Ctrl+C handler for graceful cancellation.
  2. Initializes the platform (Windows UTF-8 code page, TTY detection).
  3. Parses arguments via clap.
  4. Initializes logging via tracing-subscriber.
  5. Initializes terminal color configuration.
  6. Initializes i18n with the detected language.
  7. Dispatches to the appropriate subcommand (vps, connect, exec, sudo-exec, scp, tunnel).