Skip to main content

load_hosts

Function load_hosts 

Source
pub fn load_hosts() -> Result<Vec<Host>>
Expand description

Loads manually-added hosts from ~/.config/omnyssh/hosts.toml.

Returns an empty Vec if the file does not exist yet.

ยงErrors

Returns an error if the file exists but cannot be read or parsed.