summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-11 08:55:24 -0500
committerJeff Carr <[email protected]>2025-10-11 09:27:10 -0500
commite3046f7e431fc1c6ced4054517aa247298ab5f78 (patch)
treed3c7fbf86f71cf2181cb0c9663fe264b3a423fee
parent7d7672b57332f3f440dc7febe5a88dd0bce88344 (diff)
show age. thanks cobol library
-rw-r--r--package.proto2
-rw-r--r--tablePackages.go6
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