summaryrefslogtreecommitdiff
path: root/humanTable.go
diff options
context:
space:
mode:
Diffstat (limited to 'humanTable.go')
-rw-r--r--humanTable.go70
1 files changed, 37 insertions, 33 deletions
diff --git a/humanTable.go b/humanTable.go
index 8ececc2..2bbeda7 100644
--- a/humanTable.go
+++ b/humanTable.go
@@ -246,7 +246,7 @@ func (f *Forge) printForgedToTable(repo *gitpb.Repo, sizes []int) {
log.Info(cobol.TerminalChomp(start + " " + end))
}
-func (psets *Patchsets) PrintTable() {
+func (psets *Sets) PrintTable() {
if psets == nil {
return
}
@@ -257,29 +257,31 @@ func (psets *Patchsets) PrintTable() {
sizes := []int{12, 12, 3, 3, 40, 80, 2, 2, 2, 2}
log.Info(cobol.TerminalChomp(cobol.StandardTableSize10(sizes, args)))
- var countCONTENTS int
- var countPARTS int
- for x, pset := range psets.GetPatchsets() {
- log.Info(pset.Uuid, pset.Name, pset.State)
- if pset.State == "DONE" {
- // old patchset
- continue
- }
- cId := log.Sprintf("%d", x)
- countCONTENTS += 1
- for i, p := range pset.Patches.GetPatches() {
- var args []string
- partId := log.Sprintf("%d", i)
+ /*
+ var countCONTENTS int
+ var countPARTS int
+ for x, pset := range psets.GetSets() {
+ log.Info(pset.Patches.Uuid, pset.Patches.Name, pset.Patches.State)
+ if pset.State == "DONE" {
+ // old patchset
+ continue
+ }
+ cId := log.Sprintf("%d", x)
+ countCONTENTS += 1
+ for i, p := range pset.Patches.GetPatches() {
+ var args []string
+ partId := log.Sprintf("%d", i)
- _, fname := filepath.Split(p.GetFilename())
- args = []string{p.CommitHash, p.NewHash, cId, partId, fname, p.GetNamespace(), "", "", "", "", ""}
+ _, fname := filepath.Split(p.GetFilename())
+ args = []string{p.CommitHash, p.NewHash, cId, partId, fname, p.GetNamespace(), "", "", "", "", ""}
- start := cobol.StandardTableSize10(sizes, args)
- log.Info(cobol.TerminalChomp(start))
- countPARTS += 1
- }
- }
- log.Infof("Total Contents (%d) Parts (%d)\n", countCONTENTS, countPARTS)
+ start := cobol.StandardTableSize10(sizes, args)
+ log.Info(cobol.TerminalChomp(start))
+ countPARTS += 1
+ }
+ }
+ log.Infof("Total Contents (%d) Parts (%d)\n", countCONTENTS, countPARTS)
+ */
}
func (patches *Patches) PrintTable() {
@@ -293,17 +295,19 @@ func (patches *Patches) PrintTable() {
sizes := []int{12, 12, 3, 3, 40, 80, 2, 2, 2, 2}
log.Info(cobol.TerminalChomp(cobol.StandardTableSize10(sizes, args)))
- var countPARTS int
- for x, p := range patches.GetPatches() {
- var args []string
- partId := log.Sprintf("%d", x)
+ /*
+ var countPARTS int
+ for x, p := range patches.GetPatches() {
+ var args []string
+ partId := log.Sprintf("%d", x)
- _, fname := filepath.Split(p.GetFilename())
- args = []string{p.CommitHash, p.NewHash, partId, fname, p.GetNamespace(), "", "", "", "", ""}
+ _, fname := filepath.Split(p.GetFilename())
+ args = []string{p.CommitHash, p.NewHash, partId, fname, p.GetNamespace(), "", "", "", "", ""}
- start := cobol.StandardTableSize10(sizes, args)
- log.Info(cobol.TerminalChomp(start))
- countPARTS += 1
- }
- log.Infof("Total Patches (%d)\n", countPARTS)
+ start := cobol.StandardTableSize10(sizes, args)
+ log.Info(cobol.TerminalChomp(start))
+ countPARTS += 1
+ }
+ log.Infof("Total Patches (%d)\n", countPARTS)
+ */
}