diff options
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -5,10 +5,8 @@ import ( "os" "path/filepath" "sort" - "time" "go.wit.com/gui" - "go.wit.com/lib/gui/shell" "go.wit.com/lib/gui/repostatus" "go.wit.com/log" ) @@ -226,18 +224,3 @@ func (rl *RepoList) MakeGoWork() error { fmt.Fprintln(f, ")") return nil } - -// makes a human readable thing for standard out. -func (r *RepoRow) StandardHeader() string { - lastTag := r.LastTag() - tag := r.Status.NewestTag() - gitAge, _ := tag.GetDate() - dur := time.Since(gitAge) - - master := r.Status.GetMasterVersion() - devel := r.Status.GetDevelVersion() - user := r.Status.GetUserVersion() - - header := fmt.Sprintf("%-35s %5s %-10s %-10s %-10s %-10s %-15s", r.Name(), shell.FormatDuration(dur), lastTag, master, devel, user, r.State()) - return header -} |
