diff options
| author | Jeff Carr <[email protected]> | 2025-09-11 03:28:07 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-11 03:28:07 -0500 |
| commit | ad1144efe5d937ebcd89dcded5834a0911fe3209 (patch) | |
| tree | f6589775e82ec3f0451dd8b892c766b73d928b6e /config.go | |
| parent | fa876aa17d653043f51dba5725c41b0db68d8efc (diff) | |
new forge init()
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -3,12 +3,17 @@ 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, error) { +func configInit() *forgepb.ForgeConfigs { configs := new(forgepb.ForgeConfigs) err := config.ConfigLoad(configs, "forge", "forge") - return configs, err + if err != nil { + log.Info("This tool requires your repos be scanned by forge first") + badExit(err) + } + return configs } |
