summaryrefslogtreecommitdiff
path: root/doTag.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-14 11:06:13 -0500
committerJeff Carr <[email protected]>2025-09-14 11:06:13 -0500
commit179c19147e2ce90dcb94e4fb636a8a5767a37e2c (patch)
tree9f85083e260da10c5a3067c8e731f38100614630 /doTag.go
parent0aafe6bb86bf159c4793872b222d9a38fbde799d (diff)
working len(rows)
Diffstat (limited to 'doTag.go')
-rw-r--r--doTag.go20
1 files changed, 13 insertions, 7 deletions
diff --git a/doTag.go b/doTag.go
index 22d3e16..965c80d 100644
--- a/doTag.go
+++ b/doTag.go
@@ -7,6 +7,7 @@ package main
import (
"os"
+ "path/filepath"
"time"
"go.wit.com/lib/fhelp"
@@ -75,17 +76,22 @@ func makeTagTablePB(pb *gitpb.GitTags) *gitpb.GitTagsTable {
t := pb.NewTable("tagList")
t.NewUuid()
- sf := t.AddStringFunc("Ref Name", func(r *gitpb.GitTag) string {
- return r.GetRefname()
+ col := t.AddHash()
+ col.Width = 12
+
+ col = t.AddStringFunc("Ref Name", func(r *gitpb.GitTag) string {
+ _, ref := filepath.Split(r.GetRefname())
+ return ref
})
- sf.Width = 16
+ col.Width = 16
- colAge := t.AddTimeFunc("age", func(repo *gitpb.GitTag) time.Time {
+ cola := t.AddTimeFunc("age", func(repo *gitpb.GitTag) time.Time {
// todo
return time.Now()
})
- t.AddHash()
- t.AddSubject()
- colAge.Width = 4
+ cola.Width = 6
+
+ col = t.AddSubject()
+ col.Width = -1
return t
}