repolist/viewGuiReleaser.go

34 lines
875 B
Go
Raw Normal View History

2024-02-18 10:49:52 -06:00
package repolist
import "go.wit.com/gui"
// This creates a view of the repos
// you can only have one at this point
func GuireleaserView(parent *gui.Node) *RepoList {
if me != nil {
return me
}
me = new(RepoList)
me.allrepos = make(map[string]*Repo)
me.viewName = "guireleaser"
// me.reposbox = gui.RawBox()
me.reposbox = parent
me.reposgroup = me.reposbox.NewGroup("go repositories (configure in ~/.config/myrepolist)")
me.reposgrid = me.reposgroup.NewGrid("test", 0, 0)
me.reposgrid.NewLabel("") // path goes here
2024-02-18 17:56:25 -06:00
me.reposgrid.NewLabel("target")
2024-02-18 10:49:52 -06:00
me.reposgrid.NewLabel("last tag").SetProgName("last tag")
me.reposgrid.NewLabel("Current")
me.reposgrid.NewLabel("Version")
me.reposgrid.NewLabel("git State")
me.reposgrid.NewLabel("GO State")
2024-02-18 10:49:52 -06:00
me.reposgrid.NextRow()
2024-02-19 19:43:21 -06:00
2024-02-18 10:49:52 -06:00
me.blind = gui.RawBox()
2024-02-19 19:43:21 -06:00
me.shownCount = me.blind.NewLabel("showCount")
2024-02-18 10:49:52 -06:00
return me
}