diff options
| author | Jeff Carr <[email protected]> | 2025-09-04 08:12:33 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-04 08:12:33 -0500 |
| commit | 15fbb15da8393962b1b6df824bc141caa464c57d (patch) | |
| tree | 1e44556b4a684b568f41a7d76233b519da4dc991 | |
| parent | e506a733498e35503208fb726b3b1d8cb470c572 (diff) | |
fix terminal table that prints to STDOUT
| -rw-r--r-- | humanTable.go | 16 |
1 files 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() |
