/ssh-config

A V library for parsing SSH config files.

Primary LanguageV

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)
}