delete button

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-25 11:38:12 -06:00
parent c05eacf45a
commit fba99bb2f5
1 changed files with 10 additions and 10 deletions

View File

@ -17,8 +17,10 @@ func globalResetOptions(box *gui.Node) {
log.Warn("repo is dirty. commit your changes first", repo.String()) log.Warn("repo is dirty. commit your changes first", repo.String())
me.deleteGoSrcPkgB.SetLabel("rm ~/go/src (can't. dirty repos)") me.deleteGoSrcPkgB.SetLabel("rm ~/go/src (can't. dirty repos)")
return return
} else { }
log.Warn("repo is not dirty", repo.String()) }
log.Warn("no repos have uncommited changes")
log.Warn("TODO: check things are pushed and check every dir in go/src/") log.Warn("TODO: check things are pushed and check every dir in go/src/")
me.deleteGoSrcPkgB.SetLabel("ARE YOU SURE?") me.deleteGoSrcPkgB.SetLabel("ARE YOU SURE?")
if me.deleteGoSrcPkgB.String() == "ARE YOU SURE?" { if me.deleteGoSrcPkgB.String() == "ARE YOU SURE?" {
@ -27,7 +29,5 @@ func globalResetOptions(box *gui.Node) {
quickCmd(fullpath, []string{"chmod", "700", "-R", "/home/jcarr/go/pkg/"}) quickCmd(fullpath, []string{"chmod", "700", "-R", "/home/jcarr/go/pkg/"})
quickCmd(fullpath, []string{"rm", "-rf", "/home/jcarr/go/pkg/"}) quickCmd(fullpath, []string{"rm", "-rf", "/home/jcarr/go/pkg/"})
} }
}
}
}) })
} }