summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/main.go b/main.go
index 5f275f6..0e6b259 100644
--- a/main.go
+++ b/main.go
@@ -16,6 +16,7 @@ import (
// sent via -ldflags
var VERSION string
+var DATE string
var rv *repolist.RepoList
@@ -133,9 +134,15 @@ func main() {
log.Info("Total repositories:", count)
log.Info("Finished go-clone for", argv.Repo)
if argv.AutoWork {
- log.Info("Creating", wdir+"/go.work")
+ log.Info("About to re-create", wdir+"/go.work")
+ log.Info("Sleep 3. original go.work saved as go.work.last (hit ctrl-c to cancel)")
+ log.Sleep(3)
+ shell.PathRun(wdir, []string{"mv", "go.work", "go.work.last"})
rv.MakeGoWork()
shell.PathRun(wdir, []string{"go", "work", "use"})
+ log.Info("")
+ log.Info("original go.work file saved as go.work.last")
+ log.Info("")
}
}