(root string)
| 841 | } |
| 842 | |
| 843 | func parseSSHConfigTree(root string) ([]sshDirective, []sshConfigFile, error) { |
| 844 | rootPath, err := filepath.Abs(root) |
| 845 | if err != nil { |
| 846 | return nil, nil, err |
| 847 | } |
| 848 | var ( |
| 849 | directives []sshDirective |
| 850 | fileList []sshConfigFile |
| 851 | order int |
| 852 | priority int |
| 853 | ) |
| 854 | visited := make(map[string]bool) |
| 855 | if err := parseSSHConfigFile(rootPath, false, visited, &directives, &fileList, &order, &priority); err != nil { |
| 856 | return nil, nil, err |
| 857 | } |
| 858 | return directives, fileList, nil |
| 859 | } |
| 860 | |
| 861 | func parseSSHConfigFile( |
| 862 | fileName string, |
no test coverage detected