diff options
Diffstat (limited to 'set.table.go')
| -rw-r--r-- | set.table.go | 54 |
1 files changed, 24 insertions, 30 deletions
diff --git a/set.table.go b/set.table.go index 8194346..2d8f1ac 100644 --- a/set.table.go +++ b/set.table.go @@ -20,16 +20,22 @@ func (pset *Set) PrintTable() { tablePB.PrintTable() } -func (pb *Sets) makeStandardTablePB() *SetsTable { +func (mt *PatchesTable) PrintTable() { + log.Info("ShowTable() SENDING TO GUI") + mt.MakeTable() + cobol.PrintTable(mt.pb) +} + +func (pb *Patches) makeStandardTable() *PatchesTable { t := pb.NewTable("tagList") t.NewUuid() - col := t.AddUuid() - col.Width = 12 + col := t.AddNamespace() + col.Width = 28 - col = t.AddTimeFunc("ctime", func(pset *Set) time.Time { + col = t.AddTimeFunc("ctime", func(p *Patch) time.Time { // todo - return pset.Ctime.AsTime() + return p.Ctime.AsTime() }) col.Width = 4 @@ -47,47 +53,35 @@ func (pb *Sets) makeStandardTablePB() *SetsTable { col.Width = 16 */ + col = t.AddPatchId() + col.Width = 8 + col = t.AddComment() - col.Width = -1 + col.Width = 16 - return t -} + col = t.AddFilename() + col.Width = 30 -func (mt *PatchesTable) PrintTable() { - // log.Info("ShowTable() SENDING TO GUI") - mt.MakeTable() - cobol.PrintTable(mt.pb) + return t } -func (pb *Patches) makeStandardTable() *PatchesTable { +/* +func (pb *Sets) makeStandardTablePB() *SetsTable { t := pb.NewTable("tagList") t.NewUuid() - col := t.AddNamespace() + col := t.AddUuid() col.Width = 12 - col = t.AddTimeFunc("ctime", func(p *Patch) time.Time { + col = t.AddTimeFunc("ctime", func(pset *Set) time.Time { // todo - return p.Ctime.AsTime() + return pset.Ctime.AsTime() }) col.Width = 4 - /* - col = t.AddTimeFunc("age", func(repo *gitpb.GitTag) time.Time { - // todo - return time.Now() - }) - col.Width = 4 - - col = t.AddStringFunc("Ref Name", func(r *gitpb.GitTag) string { - _, ref := filepath.Split(r.GetRefname()) - return ref - }) - col.Width = 16 - */ - col = t.AddComment() col.Width = -1 return t } +*/ |
