diff options
| author | Jeff Carr <[email protected]> | 2025-09-11 03:05:16 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-11 03:05:16 -0500 |
| commit | a97eb38bc586bb9321648f22fade014bc07ba24f (patch) | |
| tree | 32a64cdadee62d2b24dc2c63ab04941b6787d7af /main.go | |
| parent | 1eeab586708e3535eadea6e7995a957988555dbf (diff) | |
new forge.Init() process
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -37,9 +37,14 @@ func main() { } log.Info("go-mod-clean version", VERSION, "built on", BUILDTIME) + // load the ~/.config/forge/ config - // this lets you configure repos you have read/write access too - forge = forgepb.InitPB() // todo: make this scan only if pb file not found + cfg, err := configInit() + if err != nil { + log.Info("This tool requires your repos be scanned by forge first") + badExit(nil, err) + } + forge = forgepb.InitFromConfig(cfg) // figure out what directory we are running in check = findPwdRepo() |
