summaryrefslogtreecommitdiff
path: root/globalDisplayOptions.go
diff options
context:
space:
mode:
Diffstat (limited to 'globalDisplayOptions.go')
-rw-r--r--globalDisplayOptions.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/globalDisplayOptions.go b/globalDisplayOptions.go
index 866303f..b35ac29 100644
--- a/globalDisplayOptions.go
+++ b/globalDisplayOptions.go
@@ -76,6 +76,7 @@ func globalDisplayOptions(box *gui.Node) {
me.scanEveryMinute = group1.NewCheckbox("Scan every minute").SetChecked(false)
group1.NewButton("set all branches to master", func() {
+ me.Disable()
for _, repo := range me.allrepos {
if whitelist(repo.String()) {
continue
@@ -88,18 +89,36 @@ func globalDisplayOptions(box *gui.Node) {
repo.newScan()
}
}
+ me.Enable()
+ })
+
+ var longB *gui.Node
+ longB = group1.NewButton("redo go.sum", func() {
+ longB.Disable()
+ me.Disable()
+ for _, repo := range me.allrepos {
+ if whitelist(repo.String()) {
+ continue
+ }
+ repo.status.MakeRedomod()
+ }
+ me.Enable()
+ longB.Enable()
})
group1.NewButton("rm -f go.mod go.sum", func() {
+ me.Disable()
for _, repo := range me.allrepos {
if whitelist(repo.String()) {
continue
}
repo.status.RunCmd([]string{"rm", "-f", "go.mod", "go.sum"})
}
+ me.Enable()
})
group1.NewButton("git reset --hard", func() {
+ me.Disable()
for _, repo := range me.allrepos {
if whitelist(repo.String()) {
log.Warn("skipping whitelist", repo.String())
@@ -108,6 +127,7 @@ func globalDisplayOptions(box *gui.Node) {
log.Warn("running git reset --hard", repo.String())
repo.status.RunCmd([]string{"git", "reset", "--hard"})
}
+ me.Enable()
})
group2 := vbox.NewGroup("Debugger")