diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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("") } } |
