diff options
| author | Jeff Carr <[email protected]> | 2025-09-11 04:38:22 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-11 04:38:22 -0500 |
| commit | 7cf1758a363ae80b7adf498600c2c138ec526b11 (patch) | |
| tree | 46ba5a6319ae9159ae3fce0e2242dca0824a591a | |
| parent | ad1144efe5d937ebcd89dcded5834a0911fe3209 (diff) | |
back to a common Init()
| -rw-r--r-- | config.go | 19 | ||||
| -rw-r--r-- | main.go | 5 |
2 files changed, 1 insertions, 23 deletions
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 -} @@ -31,10 +31,7 @@ func main() { me.myGui = prep.Gui() // prepares the GUI package for go-args me.pp = arg.MustParse(&argv) - // read in forge info - cfg := configInit() - me.forge = forgepb.InitFromConfig(cfg) - + me.forge = forgepb.Init() me.found = new(gitpb.Repos) fhelp.CheckGoModCleanExit() |
