GetTemplateDir gets the location of the template directory.
(repo string)
| 131 | |
| 132 | // GetTemplateDir gets the location of the template directory. |
| 133 | func GetTemplateDir(repo string) string { |
| 134 | // Get current directory |
| 135 | cwd, err := os.Getwd() |
| 136 | if err != nil { |
| 137 | log.Fatalf("Failed to get current directory.") |
| 138 | } |
| 139 | installPath := path.Join(cwd, repo) |
| 140 | return installPath |
| 141 | } |
| 142 | |
| 143 | // RunHooks runs a list of hooks. |
| 144 | func RunHooks(hooks []structs.Hook) { |
no outgoing calls
no test coverage detected