ssh2-config 0.7.1

an ssh configuration parser for ssh2-rs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod define_parser;
mod openssh;
mod src_writer;

fn main() -> anyhow::Result<()> {
    // If reload SSH ALGO is not set, we don't need to do anything
    if std::env::var("RELOAD_SSH_ALGO").is_err() {
        return Ok(());
    }

    let prefs = openssh::get_my_prefs()?;
    src_writer::write_source(prefs)?;

    Ok(())
}