summaryrefslogtreecommitdiff
path: root/newRepo.go
diff options
context:
space:
mode:
Diffstat (limited to 'newRepo.go')
-rw-r--r--newRepo.go68
1 files changed, 0 insertions, 68 deletions
diff --git a/newRepo.go b/newRepo.go
index 3dbde0e..b0c583f 100644
--- a/newRepo.go
+++ b/newRepo.go
@@ -131,75 +131,7 @@ func (r *RepoList) AddRepo(pb *gitpb.Repo) (*RepoRow, error) {
r.reposbox.Enable()
})
- /*
- if strings.HasPrefix(newRepo.GoPath(), "go.wit.com/apps") {
- var showBuildB bool = false
- switch newRepo.Status.RepoType() {
- case "binary":
- // log.Info("showing compile here button")
- showBuildB = true
- case "library":
- // log.Info("library here. Hide()")
- default:
- // log.Info("unknown RepoType", newRepo.Status.RepoType())
- }
- if showBuildB {
- newRepo.endBox.NewButton("build", func() {
- newRepo.Status.Build()
- })
- }
- }
- */
r.reposgrid.NextRow()
newRepo.Status.InitOk = true
return newRepo, nil
}
-
-func (r *RepoList) makeGuireleaserView(newRepo *RepoRow) {
- grid := r.reposgrid
-
- newRepo.targetV = newRepo.Status.MirrorTargetVersion()
- grid.Append(newRepo.targetV)
-
- newRepo.lastTag = newRepo.Status.MirrorLastTag()
- grid.Append(newRepo.lastTag)
-
- newRepo.currentName = newRepo.Status.MirrorCurrentName()
- grid.Append(newRepo.currentName)
- newRepo.currentVersion = newRepo.Status.MirrorCurrentVersion()
- grid.Append(newRepo.currentVersion)
-
- newRepo.gitState = newRepo.Status.MirrorGitState()
- grid.Append(newRepo.gitState)
-
- // newRepo.goState = grid.NewLabel("goState")
-
- newRepo.endBox = grid.NewHorizontalBox("HBOX")
- newRepo.endBox.NewButton("Configure", func() {
- if newRepo.Status == nil {
- // this should never happen, but it does happen because I'm not that smart and forget I can nil Status
- // for some reason that makes sense in my head. again, I'm not that smart
- log.Warn("status window wasn't created")
- return
- }
- newRepo.Status.Toggle()
- })
- newRepo.endBox.NewButton("Whitelist", func() {
- log.Info("need to implement this")
- newRepo.Hide()
- })
- /*
- newRepo.endBox.NewButton("CheckValidGoSum()", func() {
- ok, err := r.CheckValidGoSum(newRepo)
- if err != nil {
- log.Info("go mod tidy did not work err =", err)
- return
- }
- if ok {
- log.Info("repo has go.sum requirements that are clean")
- // newRepo.goState.SetText("GOOD")
- return
- }
- })
- */
-}