summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-11 03:28:00 -0500
committerJeff Carr <[email protected]>2025-09-11 03:28:00 -0500
commit8d5fa8609eb6957ce966f1d31445de16263b1a6e (patch)
tree1ffd2cafdf47a91281f4daf9588e0a7030e599be
parent1a5647f96a1d32dc2540faed3f8d6f9e7ca6304e (diff)
new forge init()
-rw-r--r--main.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/main.go b/main.go
index 51e4d33..48fdf15 100644
--- a/main.go
+++ b/main.go
@@ -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)