diff options
| author | Jeff Carr <[email protected]> | 2025-10-28 08:41:10 -0500 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-28 08:41:10 -0500 | 
| commit | d62ff87615b40c269ff9c0e340d3b4b403aa6b5a (patch) | |
| tree | b20fd92fc7e47c2393ebee3db0fc05994720f55f | |
| parent | 1d1be3d8bc87361c76100147ef3c00aa2d5ce667 (diff) | |
make a new tablev0.0.175
| -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  | 
