working len(rows)
This commit is contained in:
parent
0aafe6bb86
commit
179c19147e
22
doTag.go
22
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()
|
||||
})
|
||||
sf.Width = 16
|
||||
col := t.AddHash()
|
||||
col.Width = 12
|
||||
|
||||
colAge := t.AddTimeFunc("age", func(repo *gitpb.GitTag) time.Time {
|
||||
col = t.AddStringFunc("Ref Name", func(r *gitpb.GitTag) string {
|
||||
_, ref := filepath.Split(r.GetRefname())
|
||||
return ref
|
||||
})
|
||||
col.Width = 16
|
||||
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue