summaryrefslogtreecommitdiff
path: root/humanTable.go
diff options
context:
space:
mode:
Diffstat (limited to 'humanTable.go')
-rw-r--r--humanTable.go66
1 files changed, 0 insertions, 66 deletions
diff --git a/humanTable.go b/humanTable.go
index 2bbeda7..b476d74 100644
--- a/humanTable.go
+++ b/humanTable.go
@@ -245,69 +245,3 @@ func (f *Forge) printForgedToTable(repo *gitpb.Repo, sizes []int) {
log.Info(cobol.TerminalChomp(start + " " + end))
}
-
-func (psets *Sets) PrintTable() {
- if psets == nil {
- return
- }
- log.DaemonMode(true)
-
- // print the header
- args := []string{"commit hash", "new hash", "", "", "name", "Repo Namespace", "", "", "", "", ""}
- 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.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(), "", "", "", "", ""}
-
- 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() {
- if patches == nil {
- return
- }
- log.DaemonMode(true)
-
- // print the header
- args := []string{"commit hash", "new hash", "", "", "name", "Repo Namespace", "", "", "", "", ""}
- 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)
-
- _, 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)
- */
-}