(basepath string, tarpath string)
| 18 | ) |
| 19 | |
| 20 | func relativeTo(basepath string, tarpath string) (string, error) { |
| 21 | basepath, err := filepath.Abs(basepath) |
| 22 | if err != nil { |
| 23 | return "", err |
| 24 | } |
| 25 | tarpath, err = filepath.Abs(tarpath) |
| 26 | if err != nil { |
| 27 | return "", err |
| 28 | } |
| 29 | return filepath.Rel(basepath, tarpath) |
| 30 | } |
| 31 | |
| 32 | func getGlobalConfig(ctx context.Context, alwaysConnect bool) (generator.Config, error) { |
| 33 | cfg := generator.Config{ |
no outgoing calls
no test coverage detected