parent
fb162b968a
commit
cec7bb8b07
15
tagWindow.go
15
tagWindow.go
|
@ -41,9 +41,7 @@ func makeTagWindow() *tagWindow {
|
||||||
|
|
||||||
tagW.box = tagW.win.Box()
|
tagW.box = tagW.win.Box()
|
||||||
tagW.group = tagW.box.NewGroup("tags")
|
tagW.group = tagW.box.NewGroup("tags")
|
||||||
tagW.group.NewButton("list tags", func() {
|
tagW.grid = tagW.box.RawGrid()
|
||||||
// dumpVersions()
|
|
||||||
})
|
|
||||||
|
|
||||||
tagW.group.NewButton("list all tags", func() {
|
tagW.group.NewButton("list all tags", func() {
|
||||||
me.autotypistWindow.Disable()
|
me.autotypistWindow.Disable()
|
||||||
|
@ -67,6 +65,11 @@ func makeTagWindow() *tagWindow {
|
||||||
me.autotypistWindow.Disable()
|
me.autotypistWindow.Disable()
|
||||||
defer me.autotypistWindow.Enable()
|
defer me.autotypistWindow.Enable()
|
||||||
for _, repo := range me.allrepos {
|
for _, repo := range me.allrepos {
|
||||||
|
if repo.String() == "go.wit.com/log" {
|
||||||
|
// only do log for now
|
||||||
|
} else {
|
||||||
|
// continue
|
||||||
|
}
|
||||||
tagsW := repo.status.TagsW
|
tagsW := repo.status.TagsW
|
||||||
if tagsW == nil {
|
if tagsW == nil {
|
||||||
repo.status.TagWindow()
|
repo.status.TagWindow()
|
||||||
|
@ -76,6 +79,12 @@ func makeTagWindow() *tagWindow {
|
||||||
tagsW.PruneSmart()
|
tagsW.PruneSmart()
|
||||||
deleteTags := tagsW.List()
|
deleteTags := tagsW.List()
|
||||||
for _, t := range deleteTags {
|
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() {
|
if me.autoDryRun.Checked() {
|
||||||
log.Info("delete tag --dry-run:", t.TagString(), "from", repo.status.String())
|
log.Info("delete tag --dry-run:", t.TagString(), "from", repo.status.String())
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue