From cec7bb8b076e6c4f12dd11601b87bbff98a71bb0 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 9 Feb 2024 04:53:26 -0600 Subject: [PATCH] make a tag list Signed-off-by: Jeff Carr --- tagWindow.go | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/tagWindow.go b/tagWindow.go index 473d0a3..0eda982 100644 --- a/tagWindow.go +++ b/tagWindow.go @@ -41,9 +41,7 @@ func makeTagWindow() *tagWindow { tagW.box = tagW.win.Box() tagW.group = tagW.box.NewGroup("tags") - tagW.group.NewButton("list tags", func() { - // dumpVersions() - }) + tagW.grid = tagW.box.RawGrid() tagW.group.NewButton("list all tags", func() { me.autotypistWindow.Disable() @@ -67,6 +65,11 @@ func makeTagWindow() *tagWindow { me.autotypistWindow.Disable() defer me.autotypistWindow.Enable() for _, repo := range me.allrepos { + if repo.String() == "go.wit.com/log" { + // only do log for now + } else { + // continue + } tagsW := repo.status.TagsW if tagsW == nil { repo.status.TagWindow() @@ -76,6 +79,12 @@ func makeTagWindow() *tagWindow { tagsW.PruneSmart() deleteTags := tagsW.List() for _, t := range deleteTags { + tagW.grid.NewLabel(t.TagString()) + tagW.grid.NewLabel(repo.status.String()) + tagW.grid.NewButton("delete", func() { + tagsW.Delete(t) + }) + tagW.grid.NextRow() if me.autoDryRun.Checked() { log.Info("delete tag --dry-run:", t.TagString(), "from", repo.status.String()) } else {