new forge init()

This commit is contained in:
Jeff Carr 2025-09-11 03:28:00 -05:00
parent 1a5647f96a
commit 8d5fa8609e
1 changed files with 2 additions and 4 deletions

View File

@ -25,20 +25,18 @@ var forge *forgepb.Forge
var configSave bool
func main() {
var check *gitpb.Repo
log.Info("go-mod-clean version", VERSION, "built on", BUILDTIME)
// command line parsing & handling
prep.Bash(ARGNAME, argv.DoAutoComplete) // todo: make this: prep.Bash(argv)
pp = arg.MustParse(&argv)
log.Info("go-mod-clean version", VERSION, "built on", BUILDTIME)
// read in forge info
cfg := configInit()
forge = forgepb.InitFromConfig(cfg)
// figure out what directory we are running in
check = findPwdRepo()
check := findPwdRepo()
if check == nil {
log.Info("this directory isn't in a golang project (not in ~/go/src nor a go.work file)")
badExit(nil, nil)