diff --git a/config.go b/config.go deleted file mode 100644 index 24f047a..0000000 --- a/config.go +++ /dev/null @@ -1,19 +0,0 @@ -package main - -import ( - "go.wit.com/lib/config" - "go.wit.com/lib/protobuf/forgepb" - "go.wit.com/log" -) - -// sent via -ldflags - -func configInit() *forgepb.ForgeConfigs { - configs := new(forgepb.ForgeConfigs) - err := config.ConfigLoad(configs, "forge", "forge") - if err != nil { - log.Info("This tool requires your repos be scanned by forge first") - badExit(err) - } - return configs -} diff --git a/main.go b/main.go index 68dda62..b8e6ab0 100644 --- a/main.go +++ b/main.go @@ -7,9 +7,7 @@ import ( // go will sit here until the window exits func main() { - // read in forge info - cfg := configInit() - forge := forgepb.InitFromConfig(cfg) + forge := forgepb.Init() all := forge.Repos.SortByFullPath() for all.Scan() {