From 15fbb15da8393962b1b6df824bc141caa464c57d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 4 Sep 2025 08:12:33 -0500 Subject: [PATCH] fix terminal table that prints to STDOUT --- humanTable.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/humanTable.go b/humanTable.go index 339548f..6681a1b 100644 --- a/humanTable.go +++ b/humanTable.go @@ -42,8 +42,8 @@ func (f *Forge) PrintHumanTable(allr *gitpb.Repos) { t := new(tally) // print the header - args := []string{"namespace", "cur br", "age", "master", "devel", "user", "curver", "lasttag", "next", "repo type"} - sizes := []int{40, 12, 6, 12, 16, 16, 16, 12, 12, 8} + args := []string{"namespace", "cur br", "age", "master", "devel", "user", "", "lasttag", "next", "repo type"} + sizes := []int{40, 9, 6, 16, 16, 16, 1, 12, 12, 8} log.Info(cobol.TerminalChomp(standardTableSize10(sizes, args))) all := allr.SortByFullPath() @@ -62,7 +62,7 @@ func (f *Forge) PrintForgedTable(allr *gitpb.Repos) { // print the header args := []string{"namespace", "cur br", "age", "master", "devel", "last tag", "", "", "", ""} - sizes := []int{40, 12, 6, 12, 16, 16, 16, 12, 12, 8} + sizes := []int{40, 9, 6, 12, 16, 16, 16, 12, 12, 8} log.Info(cobol.TerminalChomp(standardTableSize10(sizes, args))) all := allr.SortByFullPath() @@ -80,8 +80,8 @@ func (f *Forge) PrintHumanTableFull(allr *gitpb.Repos) { t := new(tally) // print the header - args := []string{"cur br", "age", "master", "devel", "user", "curver", "lasttag", "next", "repo type", "namespace"} - sizes := []int{12, 6, 12, 16, 16, 16, 12, 12, 8, 0} + args := []string{"cur br", "age", "master", "devel", "user", "", "lasttag", "next", "repo type", "namespace"} + sizes := []int{9, 6, 16, 16, 16, 1, 12, 12, 8, 0} log.Info(cobol.TerminalChomp(standardTableSize10(sizes, args))) all := allr.SortByFullPath() @@ -100,8 +100,8 @@ func (f *Forge) PrintHumanTableDirty(allr *gitpb.Repos) { t := new(tally) // print the header - args := []string{"namespace", "cur br", "age", "master", "devel", "user", "curver", "lasttag", "next", "repo type"} - sizes := []int{40, 12, 6, 12, 16, 16, 16, 12, 12, 8} + args := []string{"namespace", "cur br", "age", "master", "devel", "user", "", "lasttag", "next", "repo type"} + sizes := []int{40, 9, 6, 16, 16, 16, 1, 12, 12, 8} log.Info(cobol.TerminalChomp(standardTableSize10(sizes, args))) for repo := range allr.IterAll() { @@ -218,7 +218,7 @@ func (f *Forge) printRepoToTable(repo *gitpb.Repo, sizes []int, full bool) { } var lasttag string = repo.GetLastTag() var thort string = repo.GetTargetVersion() - var chort string = repo.GetCurrentBranchVersion() + var chort string = "" // repo.GetCurrentBranchVersion() var cname string = repo.GetCurrentBranchName() var gopath string = repo.GetNamespace()