Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

A V library for parsing SSH config files.
https://github.com/walkingdevel/ssh-config

config parser ssh vlang

Last synced: 3 months ago
JSON representation

A V library for parsing SSH config files.

Awesome Lists containing this project

README

        

# Install.

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

# Usage.

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