Skip to main content

run_host_selection

Function run_host_selection 

Source
pub fn run_host_selection(
    probed_hosts: &[HostProbeResult],
    already_configured: &HashSet<String>,
) -> Result<(HostSelectionResult, Vec<HostDisplayInfo>), InteractiveError>
Expand description

Run the interactive host selection flow.

This is the main entry point for host selection. It:

  1. Converts probe results to display info
  2. Shows the interactive multi-select prompt
  3. Returns the selection result

§Arguments

  • probed_hosts - Results from probing SSH hosts
  • already_configured - Set of normalized source-name keys already configured

§Returns

The selected hosts and their categorization, or an error if cancelled.