diff options
| -rw-r--r-- | package.proto | 2 | ||||
| -rw-r--r-- | tablePackages.go | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/package.proto b/package.proto index 7c8436b..fdb99d7 100644 --- a/package.proto +++ b/package.proto @@ -33,7 +33,7 @@ message DebInfo { } message Package { - string Package = 1; // `autogenpb:sort` + string Package = 1; // `autogenpb:unique` `autogenpb:sort` string Filename = 2; // `autogenpb:unique` `autogenpb:sort` string Namespace = 3; // namespace path to the sources (go.wit.com/apps/zookeeper) string Version = 4; // diff --git a/tablePackages.go b/tablePackages.go index c4ec53c..d317331 100644 --- a/tablePackages.go +++ b/tablePackages.go @@ -3,6 +3,7 @@ package zoopb import ( + "go.wit.com/lib/cobol" "go.wit.com/log" ) @@ -38,6 +39,11 @@ func (pb *Packages) MakeDefaultTable() *PackagesTable { }) col.Width = 6 + col = t.AddStringFunc("age", func(p *Package) string { + return cobol.Since(p.Ctime) + }) + col.Width = 5 + col = t.AddArchitecture() col.Width = 8 |
