From 5f8cce4e3bf439185c972f6191d3c06fb33c4eb6 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 20 Feb 2024 20:51:07 -0600 Subject: [PATCH] it took 5 days to fix the code so this release could be done --- globalResetOptions.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/globalResetOptions.go b/globalResetOptions.go index 4622f3a..00723e9 100644 --- a/globalResetOptions.go +++ b/globalResetOptions.go @@ -42,14 +42,15 @@ func globalResetOptions(box *gui.Node) { log.Warn("TODO: check things are pushed and check every dir in go/src/") me.deleteGoSrcPkgB.SetLabel("ARE YOU SURE?") if me.deleteGoSrcPkgB.String() == "ARE YOU SURE?" { - me.deleteGoSrcPkgB.SetLabel("WE ARE NOT KIDDING?") + me.deleteGoSrcPkgB.SetLabel("WE ARE NOT KIDDING") return } + var totals string = "All " + me.summary.totalGoOL.String() + " Repos?" if me.deleteGoSrcPkgB.String() == "WE ARE NOT KIDDING" { - me.deleteGoSrcPkgB.SetLabel("ALL 90 REPOS?") + me.deleteGoSrcPkgB.SetLabel(totals) return } - if me.deleteGoSrcPkgB.String() == "ARE YOU SURE?" { + if me.deleteGoSrcPkgB.String() == totals { homeDir := me.userHomePwd.String() fullpath := filepath.Join(homeDir, "go") gosrc := filepath.Join(fullpath, "src")