back to a common Init()
This commit is contained in:
parent
c638819b00
commit
96ea435179
19
config.go
19
config.go
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue