Skip to main content

resolve_target_host

Function resolve_target_host 

Source
pub fn resolve_target_host(
    remote_host: Option<&str>,
    force_local: bool,
) -> Option<String>
Expand description

Resolve the target host name based on flags and hosts.json

Resolution order:

  1. –local (force local Docker)
  2. –remote-host flag (explicit)
  3. default_host from hosts.json
  4. Local Docker (no host_name)