diff options
| author | Jeff Carr <[email protected]> | 2025-09-11 03:27:49 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-11 03:27:49 -0500 |
| commit | d19f4a8911dc6b6baca272d6ee16b11eb6aea1a9 (patch) | |
| tree | 71a62e85ff8657322410b36f82590801a9466127 /config.go | |
| parent | 54811a5bc1906f5b20e9673621d54ffff9570392 (diff) | |
new forge init()
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/config.go b/config.go new file mode 100644 index 0000000..24f047a --- /dev/null +++ b/config.go @@ -0,0 +1,19 @@ +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 +} |
