summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/main.go b/main.go
index c3a1d0d..72a0fef 100644
--- a/main.go
+++ b/main.go
@@ -20,7 +20,7 @@ var forge *forgepb.Forge
var check *gitpb.Repo
func main() {
- log.Info("go-clean version", VERSION, "built on", BUILDTIME)
+ log.Info("go-mod-clean version", VERSION, "built on", BUILDTIME)
pp = arg.MustParse(&argv)
// load the ~/.config/forge/ config
@@ -35,18 +35,18 @@ func main() {
log.Info("this directory isn't in a golang project (not in ~/go/src nor a go.work file)")
os.Exit(-1)
}
- log.Info("starting go-clean for", check.GoPath)
+ log.Info("starting go-mod-clean for", check.GoPath)
log.Info("go src dir is set to", forge.GetGoSrc())
if argv.Recursive {
if forge.IsGoWork() {
var warning []string
- warning = append(warning, "go-clean --recursive may not work unless you are in ~/go/src")
+ warning = append(warning, "go-mod-clean --recursive may not work unless you are in ~/go/src")
warning = append(warning, "you can continue anyway, but it hasn't been tested as much.")
simpleStdin(true, warning)
}
var warning []string
- warning = append(warning, "go-clean will recreate go.mod and go.sum")
+ warning = append(warning, "go-mod-clean will recreate go.mod and go.sum")
warning = append(warning, "because you have selected --recursive")
warning = append(warning, "this will redo _every_ repo. This is probably fine.")
warning = append(warning, fmt.Sprintf("You have %d total repositories in %s", forge.Repos.Len(), forge.GetGoSrc()))
@@ -61,7 +61,7 @@ func main() {
simpleStdin(false, warning)
// purgeGoCaches()
} else {
- simpleStdin(true, []string{"go-clean will recreate go.mod and go.sum"})
+ simpleStdin(true, []string{"go-mod-clean will recreate go.mod and go.sum"})
}
// re-create go.sum and go.mod
@@ -104,11 +104,11 @@ func findPwdRepo() *gitpb.Repo {
func okExit(thing string) {
log.Info(thing, "ok")
- log.Info("Finished go-clean on", check.GetGoPath(), "ok")
+ log.Info("Finished go-mod-clean on", check.GetGoPath(), "ok")
os.Exit(0)
}
func badExit(err error) {
- log.Info("go-clean failed: ", err, forge.GetGoSrc())
+ log.Info("go-mod-clean failed: ", err, forge.GetGoSrc())
os.Exit(-1)
}