summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-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)