(path string)
| 1139 | } |
| 1140 | |
| 1141 | func expandPath(path string) string { |
| 1142 | home := os.Getenv("HOME") |
| 1143 | if home == "" { |
| 1144 | home = pathutil.Home() |
| 1145 | } |
| 1146 | return os.ExpandEnv(strings.ReplaceAll(path, "~", home)) |
| 1147 | } |
| 1148 | |
| 1149 | // ============================================================================ |
| 1150 | // update — fetch/update from configured repositories |
no test coverage detected