summaryrefslogtreecommitdiff
path: root/viewGuiReleaser.go
diff options
context:
space:
mode:
Diffstat (limited to 'viewGuiReleaser.go')
-rw-r--r--viewGuiReleaser.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/viewGuiReleaser.go b/viewGuiReleaser.go
new file mode 100644
index 0000000..b445eb9
--- /dev/null
+++ b/viewGuiReleaser.go
@@ -0,0 +1,30 @@
+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
+ me.reposgrid.NewLabel("last tag").SetProgName("last tag")
+ me.reposgrid.NewLabel("master version")
+ me.reposgrid.NewLabel("Status")
+ me.reposgrid.NewLabel("GO Status")
+ me.reposgrid.NewLabel("Current Version").SetProgName("Current Version")
+ me.reposgrid.NextRow()
+ me.blind = gui.RawBox()
+ return me
+}