2024-01-09 15:34:53 -06:00
|
|
|
package repostatus
|
|
|
|
|
|
|
|
import (
|
|
|
|
"go.wit.com/gui/gui"
|
|
|
|
"go.wit.com/gui/gadgets"
|
|
|
|
)
|
|
|
|
|
|
|
|
func New(p *gui.Node, path string) *RepoStatus {
|
|
|
|
rs := &RepoStatus {
|
|
|
|
hidden: true,
|
|
|
|
ready: false,
|
|
|
|
parent: p,
|
|
|
|
repopath: path,
|
|
|
|
}
|
|
|
|
rs.tags = make(map[string]string)
|
2024-01-13 20:30:33 -06:00
|
|
|
rs.window = gadgets.NewBasicWindow(p, "GO Repo Details " + path)
|
2024-01-14 10:00:42 -06:00
|
|
|
rs.window.Horizontal()
|
|
|
|
rs.window.Make()
|
2024-01-09 15:34:53 -06:00
|
|
|
rs.ready = true
|
2024-01-14 10:00:42 -06:00
|
|
|
rs.draw()
|
2024-01-11 15:56:50 -06:00
|
|
|
return rs
|
2024-01-09 15:34:53 -06:00
|
|
|
}
|