()
| 259 | } |
| 260 | |
| 261 | func getExecutableDir() (string, *FutureLog) { |
| 262 | ex, err := osExecutable() |
| 263 | if err != nil { |
| 264 | return "", &FutureLog{ |
| 265 | Level: zerolog.ErrorLevel, |
| 266 | Msg: "Could not get path of executable using working directory instead. " + err.Error(), |
| 267 | } |
| 268 | } |
| 269 | return filepath.Dir(ex), nil |
| 270 | } |
| 271 | |
| 272 | func getFiles(relativeTo string) []string { |
| 273 | var result []string |
no outgoing calls
no test coverage detected