move things to gitpb
This commit is contained in:
parent
57cbde285b
commit
eb72a685c4
|
@ -24,6 +24,10 @@ func (r *RepoList) Hide() {
|
||||||
r.reposbox.Hide()
|
r.reposbox.Hide()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (r *RepoRow) IsProtobuf() (bool, []string, error) {
|
||||||
|
return r.pb.IsProtobuf()
|
||||||
|
}
|
||||||
|
|
||||||
// better name: use this
|
// better name: use this
|
||||||
// matches by path or by name
|
// matches by path or by name
|
||||||
func (r *RepoList) FindByName(name string) *RepoRow {
|
func (r *RepoList) FindByName(name string) *RepoRow {
|
||||||
|
|
33
newRepo.go
33
newRepo.go
|
@ -89,7 +89,6 @@ func (r *RepoList) AddRepo(pb *gitpb.Repo) (*RepoRow, error) {
|
||||||
newRepo.currentName = r.reposgrid.NewLabel("")
|
newRepo.currentName = r.reposgrid.NewLabel("")
|
||||||
newRepo.currentVersion = r.reposgrid.NewLabel("")
|
newRepo.currentVersion = r.reposgrid.NewLabel("")
|
||||||
|
|
||||||
|
|
||||||
newRepo.endBox = r.reposgrid.NewHorizontalBox("HBOX")
|
newRepo.endBox = r.reposgrid.NewHorizontalBox("HBOX")
|
||||||
newRepo.endBox.NewButton("Configure", func() {
|
newRepo.endBox.NewButton("Configure", func() {
|
||||||
newRepo.Status.Toggle()
|
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") {
|
if strings.HasPrefix(newRepo.GoPath(), "go.wit.com/apps") {
|
||||||
var showBuildB bool = false
|
var showBuildB bool = false
|
||||||
switch newRepo.Status.RepoType() {
|
switch newRepo.Status.RepoType() {
|
||||||
case "binary":
|
case "binary":
|
||||||
// log.Info("showing compile here button")
|
// log.Info("showing compile here button")
|
||||||
showBuildB = true
|
showBuildB = true
|
||||||
case "library":
|
case "library":
|
||||||
// log.Info("library here. Hide()")
|
// log.Info("library here. Hide()")
|
||||||
default:
|
default:
|
||||||
// log.Info("unknown RepoType", newRepo.Status.RepoType())
|
// log.Info("unknown RepoType", newRepo.Status.RepoType())
|
||||||
|
}
|
||||||
|
if showBuildB {
|
||||||
|
newRepo.endBox.NewButton("build", func() {
|
||||||
|
newRepo.Status.Build()
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if showBuildB {
|
|
||||||
newRepo.endBox.NewButton("build", func() {
|
|
||||||
newRepo.Status.Build()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
*/
|
||||||
r.reposgrid.NextRow()
|
r.reposgrid.NextRow()
|
||||||
newRepo.Status.InitOk = true
|
newRepo.Status.InitOk = true
|
||||||
|
|
Loading…
Reference in New Issue