summaryrefslogtreecommitdiff
path: root/tableDefault.go
diff options
context:
space:
mode:
Diffstat (limited to 'tableDefault.go')
-rw-r--r--tableDefault.go39
1 files changed, 1 insertions, 38 deletions
diff --git a/tableDefault.go b/tableDefault.go
index 7885f93..b7ecc57 100644
--- a/tableDefault.go
+++ b/tableDefault.go
@@ -6,44 +6,7 @@ import (
"go.wit.com/log"
)
-// this is the default table layout for repos in forge
-
-/*
-func (pb *Packages) PrintTable() {
- tablePB := pb.makeDefaultTable()
- tablePB.PrintTable()
- log.Printf("pb.DefaultTable: %d packages\n", pb.Len())
-}
-*/
-
-/*
-func (pb *Packages) makeDefaultTable() *PackagesTable {
- t := pb.NewTable("apt packages")
- t.NewUuid()
-
- var col *PackageFunc
-
- col = t.AddStringFunc(" I", func(p *Package) string {
- if p.Installed {
- return " X"
- }
- return ""
- })
- col.Width = 3
-
- col = t.AddName()
- col.Width = 30
-
- col = t.AddVersion()
- col.Width = 20
-
- col = t.AddPkgName()
- col.Width = -1
- col.Header.Name = "apt package path"
-
- return t
-}
-*/
+// this is the smart table layout for packages
func (m *Machine) PrintTable(pb *Packages) {
tablePB := m.makeSmartTable(pb)