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")