summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-29 23:18:18 -0600
committerJeff Carr <[email protected]>2024-11-29 23:18:18 -0600
commiteb72a685c487625908b159a47490d71863988033 (patch)
treebf8edb5b0b3da6dcb2992d1f9e7879859cf9e013
parent57cbde285b380d9146b3ee46116e5fa90f292444 (diff)
move things to gitpbv0.22.17
-rw-r--r--common.go4
-rw-r--r--newRepo.go33
2 files changed, 20 insertions, 17 deletions
diff --git a/common.go b/common.go
index d1ec950..658b770 100644
--- a/common.go
+++ b/common.go
@@ -24,6 +24,10 @@ func (r *RepoList) Hide() {
r.reposbox.Hide()
}
+func (r *RepoRow) IsProtobuf() (bool, []string, error) {
+ return r.pb.IsProtobuf()
+}
+
// better name: use this
// matches by path or by name
func (r *RepoList) FindByName(name string) *RepoRow {
diff --git a/newRepo.go b/newRepo.go
index f1cdedc..0932ed6 100644
--- a/newRepo.go
+++ b/newRepo.go
@@ -89,7 +89,6 @@ func (r *RepoList) AddRepo(pb *gitpb.Repo) (*RepoRow, error) {
newRepo.currentName = r.reposgrid.NewLabel("")
newRepo.currentVersion = r.reposgrid.NewLabel("")
-
newRepo.endBox = r.reposgrid.NewHorizontalBox("HBOX")
newRepo.endBox.NewButton("Configure", func() {
newRepo.Status.Toggle()
@@ -126,23 +125,23 @@ func (r *RepoList) AddRepo(pb *gitpb.Repo) (*RepoRow, error) {
})
/*
- 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()
- })
+ 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