Skip to main content

parse

Function parse 

Source
pub fn parse(text: &str) -> Found
Expand description

The hosts named by an ssh_config’s text.

Only concrete names. A pattern is a rule for matching hosts, not a host: Host * sets defaults for everything and names nothing, and serving an alias called * is not a thing that could work. Negations are patterns too.

Order is the file’s order, and the first spelling of a duplicate wins, because that is the one OpenSSH’s first-match-wins resolution will use.