Function expand_hosts
pub fn expand_hosts(hosts: Vec<&str>, clusters: &[Cluster]) -> Vec<String>Expand description
Resolve cluster tags in hosts and expand brace expressions
(e.g. host{1..3}.local) in each resulting hostname.
Used by the control-mode [c]reate window(s) path so hostname
input behaves the same as on the CLI. Each cluster-resolved
hostname is passed through [bracoxide::explode] individually;
hostnames that do not contain a brace expression are kept as-is.
§Arguments
hosts- User-supplied hostnames and/or cluster tags.clusters- Available cluster definitions.
§Returns
The fully resolved, brace-expanded list of hostnames.