Skip to content

walkingdevel/ssh-config

Repository files navigation

Install.

v install https://github.com/walkingdevel/ssh-config

Usage.

import ssh_config { parse_file }

fn main() {
	configs := parse_file('/Users/user/.ssh/config') or { panic(err) }

	postgres_config := configs['postgres']

	println(configs.keys())
	println(postgres_config.hostname)
	println(postgres_config.user)
	println(postgres_config.port)
}

About

A V library for parsing SSH config files.

Topics

Resources

Stars

Watchers

Forks

Languages