summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-15 09:44:54 -0600
committerJeff Carr <[email protected]>2024-11-15 09:44:54 -0600
commitafb478c8c7f12aea4e8eb73cbe33f8675d9689bf (patch)
tree52fa429a3cd4d4138f2dcda0901c62c4dd10cf3b /main.go
parentf8bef3081c7ca36b2970514401f2871039e99324 (diff)
add build date. backup go.work filev0.5.7
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("")
}
}