normalizeProjectPath normalizes a project path provided by the user
(projectPath string)
| 27 | |
| 28 | // normalizeProjectPath normalizes a project path provided by the user |
| 29 | func normalizeProjectPath(projectPath string) (string, error) { |
| 30 | res, err := fileutil.ExpandHome(projectPath) |
| 31 | if err != nil { |
| 32 | return "", err |
| 33 | } |
| 34 | res, err = filepath.Abs(res) |
| 35 | if err != nil { |
| 36 | return "", err |
| 37 | } |
| 38 | return res, nil |
| 39 | } |
no test coverage detected