Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/walkingdevel/ssh-config
- Owner: walkingdevel
- Created: 2022-12-01T22:49:30.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-10T19:22:59.000Z (over 1 year ago)
- Last Synced: 2024-04-23T16:38:42.254Z (7 months ago)
- Topics: config, parser, ssh, vlang
- Language: V
- Homepage:
- Size: 22.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-v - ssh-config - A V library for parsing SSH config files. (Libraries / Utility)
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)
}
```