pub fn write_tunnels(path: &Path, specs: &[SshTunnelSpec]) -> Result<()>Expand description
Persist [[ssh_tunnels]] to the config file at path.
Reads any existing TOML, strips all existing [[ssh_tunnels]] blocks,
and appends fresh ones rebuilt from specs. The rest of the file is
preserved verbatim. Creates the file (and parent directory) if missing.