Function main
pub async fn main<W: WindowsApi + Clone + 'static>(
windows_api: &W,
hosts: Vec<String>,
username: Option<String>,
port: Option<u16>,
config: &DaemonConfig,
clusters: &[Cluster],
debug: bool,
)Expand description
The entrypoint for the daemon subcommand.
Spawns 1 client process with its own window for each host and 1 worker thread that handles communication with the client over a named pipe. Responsible for client window positioning and sizing. Handles control mode. Main thread reads input records from the console input buffer and propagates them via the background threads to all clients simultaneously.
ยงArguments
windows_api- The Windows API implementation to usehosts- List of hostnames for which to launch clients.username- Username used to connect to the hosts. If none, each client will use the SSH config to determine a suitable username for their respective host.port- Optional port used for all SSH connections.config- TheDaemonConfig.debug- Enables debug logging