summaryrefslogtreecommitdiff
path: root/config.go
blob: 24f047a7f795031f92034cf4804df8997989eaa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
}