diff options
| author | Jeff Carr <[email protected]> | 2025-10-08 06:34:24 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-08 06:34:24 -0500 |
| commit | 7b73f1d91d88bb8974435ab9b16f5a4c8f5d7307 (patch) | |
| tree | 6b82c55c80f9604c6dccdd86ec29a0029ff6baa5 /tablePull.go | |
| parent | cd8daac7b211723bfa2b090554185b216df4ea03 (diff) | |
minorv0.0.174
Diffstat (limited to 'tablePull.go')
| -rw-r--r-- | tablePull.go | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tablePull.go b/tablePull.go index ebe062f..62b69c3 100644 --- a/tablePull.go +++ b/tablePull.go @@ -3,8 +3,7 @@ package forgepb import ( - "path/filepath" - + "go.wit.com/lib/config" "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" ) @@ -30,11 +29,14 @@ func (f *Forge) makePullTable(pb *gitpb.Repos) *gitpb.ReposTable { // col.SetTitle("mver") col.Width = 15 - col = t.AddStringFunc("blah", func(r *gitpb.Repo) string { - _, base := filepath.Split(r.Namespace) - return base + col = t.AddStringFunc("age", func(r *gitpb.Repo) string { + if r.IsDirty() { + return "*" + } + dur := r.NewestAge() + return config.FormatDuration(dur) }) - col.Width = 9 + col.Width = 3 col = t.AddDevelVersion() col.Width = 15 |
