diff options
Diffstat (limited to 'tableReposDefault.go')
| -rw-r--r-- | tableReposDefault.go | 52 |
1 files changed, 17 insertions, 35 deletions
diff --git a/tableReposDefault.go b/tableReposDefault.go index d7fe459..5be28c3 100644 --- a/tableReposDefault.go +++ b/tableReposDefault.go @@ -35,63 +35,45 @@ func (pb *Repos) MakeDefaultTB() *ReposTable { col = t.AddNamespace() col.Width = 33 + col.Header.Name = "Repo Namespace" col = t.AddCurrentBranchName() col.Width = 7 - col.Header.Name = "current" + col.Header.Name = "branch" col = t.AddStringFunc("age", func(r *Repo) string { if r.IsDirty() { - return "" + return "*" } dur := r.NewestAge() return cobol.FormatDuration(dur) }) col.Width = 5 - col = t.AddStringFunc("user", func(r *Repo) string { - ver := r.GetUserVersion() - if r.IsDirty() { - ver = "* " + ver - } - return ver - }) - col.Width = 14 - - col = t.AddDevelVersion() - col.Width = 12 - col.Header.Name = "devel" - col = t.AddMasterVersion() - col.Width = 12 + col.Width = 16 col.Header.Name = "master" - col = t.AddLastTag() - col.Width = 12 - col.Header.Name = "lasttag" - - col = t.AddStringFunc("type", func(r *Repo) string { - return getRepoType(r) - }) - col.Width = 6 + col = t.AddDevelVersion() + col.Width = 16 + col.Header.Name = "devel" /* - col = t.AddStringFunc("r/w", func(r *Repo) string { - if f.IsWritable(r) { - return "rw" + col = t.AddStringFunc("user", func(r *Repo) string { + ver := r.GetUserVersion() + if r.IsDirty() { + ver = "* " + ver } - return "" + return ver }) - col.Width = 3 + col.Width = 14 */ - col = t.AddURL() - col.Width = 20 - - col = t.AddState() - col.Width = 16 + col = t.AddLastTag() + col.Width = 12 + col.Header.Name = "lasttag" - col = t.AddStateChange() + col = t.AddURL() col.Width = -1 return t |
