summaryrefslogtreecommitdiff
path: root/tableMissing.go
diff options
context:
space:
mode:
authorforge <[email protected]>2025-10-06 12:17:32 -0500
committerJeff Carr <[email protected]>2025-10-07 02:28:25 -0500
commit6bd10cf29ba546e80803874e0499d17aa2223330 (patch)
treec2ab43b5b07fe3fa9e9c313a5dc6f1895e98ccfa /tableMissing.go
parentcd5d073138cd52e21d3cdf751b39260ddedd4aba (diff)
wrong logic
Diffstat (limited to 'tableMissing.go')
-rw-r--r--tableMissing.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/tableMissing.go b/tableMissing.go
new file mode 100644
index 0000000..bf3c2bc
--- /dev/null
+++ b/tableMissing.go
@@ -0,0 +1,30 @@
+// Copyright 2025 WIT.COM Inc Licensed GPL 3.0
+
+package gitpb
+
+func (pb *Repos) PrintMissingTable() {
+ t := pb.NewTable("missing repos table")
+ t.NewUuid()
+
+ var col *RepoFunc
+
+ col = t.AddNamespace()
+ col.Width = 45
+
+ col = t.AddURL()
+ col.Width = -1
+
+ /*
+ col = t.AddStringFunc("hash", func(r *gitpb.Repo) string {
+ if r.Tags == nil {
+ return "nil"
+ }
+ if r.Tags.Master == nil {
+ return "nil"
+ }
+ return r.Tags.Master.Hash
+ })
+ col.Width = 6
+ */
+ t.PrintTable()
+}