From c078811dcb037b0482400a68f074cc8d3108ae43 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 27 Sep 2025 01:44:01 -0500 Subject: better forged table --- humanForgedTable.go | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/humanForgedTable.go b/humanForgedTable.go index b727f2b..c9a5e17 100644 --- a/humanForgedTable.go +++ b/humanForgedTable.go @@ -18,11 +18,28 @@ func (f *Forge) makeForgedTable(pb *gitpb.Repos) *gitpb.ReposTable { var col *gitpb.RepoAnyFunc col = t.AddMasterVersion() - col.Width = 15 + col.Width = 7 col = t.AddMasterBranchName() col.Width = 10 + col = t.AddStringFunc("blah", func(r *gitpb.Repo) string { + if r.Tags == nil { + return "tags=nil" + } + if r.Tags.Master == nil { + return "mtag=nil" + } + return r.Tags.Master.Refname + }) + col.Width = 12 + + col = t.AddNamespace() + col.Width = 32 + + col = t.AddURL() + col.Width = 32 + col = t.AddFullPath() col.Width = -1 return t -- cgit v1.2.3