MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / parseSSH

Function parseSSH

cli/pkg/ssh_config/parser.go:185–205  ·  view source on GitHub ↗
(flow chan token, system bool, depth uint8)

Source from the content-addressed store, hash-verified

183}
184
185func parseSSH(flow chan token, system bool, depth uint8) *Config {
186 // Ensure we consume tokens to completion even if parser exits early
187 defer func() {
188 for range flow {
189 }
190 }()
191
192 result := newConfig()
193 result.position = Position{1, 1}
194 parser := &sshParser{
195 flow: flow,
196 config: result,
197 tokensBuffer: make([]token, 0),
198 currentTable: make([]string, 0),
199 seenTableKeys: make([]string, 0),
200 system: system,
201 depth: depth,
202 }
203 parser.run()
204 return result
205}

Callers 1

decodeBytesFunction · 0.85

Calls 2

runMethod · 0.95
newConfigFunction · 0.70

Tested by

no test coverage detected