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
|
|
|
|
|
2024-02-20 10:59:42 -06:00
|
|
|
me.reposgroup = me.reposbox.NewGroup("GUI repositories (configure in ~/.config/guireleaser)")
|
2024-02-18 10:49:52 -06:00
|
|
|
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")
|
2024-02-19 14:42:34 -06:00
|
|
|
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
|
|
|
|
}
|