summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-04 06:15:45 -0600
committerJeff Carr <[email protected]>2024-11-04 06:15:45 -0600
commitedfdb48ddf85eb414a1a264f724a30eb8bef91d3 (patch)
treeebbe376c19cf260a242cd247c5701a924f2ee969 /common.go
parent98926bf2f80a25e51429d74182254da1103bdbc7 (diff)
sort repos by name
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'common.go')
-rw-r--r--common.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/common.go b/common.go
index 2dc38ef..42a0c30 100644
--- a/common.go
+++ b/common.go
@@ -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
-}