(filename string, depth uint8)
| 283 | } |
| 284 | |
| 285 | func 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 | |
| 293 | func isSystem(filename string) bool { |
| 294 | // TODO: not sure this is the best way to detect a system repo |
no test coverage detected