diff options
| author | Jeff Carr <[email protected]> | 2025-09-11 04:46:40 -0500 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-11 04:46:40 -0500 | 
| commit | b46996bac2724ea2a1b9ef11d6ff5cb6faba8a83 (patch) | |
| tree | 989d0267f85e099bafccd3ca08e11f615b127ac1 | |
| parent | 8e67e31bbed9219d93e2f88aeec6040aaf10020f (diff) | |
common forge.Init()v0.22.93
| -rw-r--r-- | config.go | 19 | ||||
| -rw-r--r-- | main.go | 4 | 
2 files changed, 1 insertions, 22 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 -} @@ -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() {  | 
