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

Function parseWithDepth

cli/pkg/ssh_config/config.go:285–291  ·  view source on GitHub ↗
(filename string, depth uint8)

Source from the content-addressed store, hash-verified

283}
284
285func parseWithDepth(filename string, depth uint8) (*Config, error) {
286 b, err := os.ReadFile(filename)
287 if err != nil {
288 return nil, err
289 }
290 return decodeBytes(b, isSystem(filename), depth)
291}
292
293func isSystem(filename string) bool {
294 // TODO: not sure this is the best way to detect a system repo

Callers 2

parseFileFunction · 0.85
NewIncludeFunction · 0.85

Calls 2

decodeBytesFunction · 0.85
isSystemFunction · 0.85

Tested by

no test coverage detected