summaryrefslogtreecommitdiff
path: root/human.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-05 03:14:27 -0600
committerJeff Carr <[email protected]>2024-11-05 03:14:27 -0600
commit44d221697fa9e5edd81ec99a7041c726d42ba034 (patch)
treed3861d29d9494c19b460b430bb22e60104af5596 /human.go
parent9a1cc5839fb087cadfa02e00a9131dc5c73818c0 (diff)
show target version in the stdout report
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'human.go')
-rw-r--r--human.go13
1 files changed, 9 insertions, 4 deletions
diff --git a/human.go b/human.go
index ec2997c..cd322e7 100644
--- a/human.go
+++ b/human.go
@@ -18,12 +18,16 @@ func (r *RepoRow) StandardHeader() string {
gitAge, _ := tag.GetDate()
dur := time.Since(gitAge)
+ target := r.Status.GetTargetVersion()
master := r.Status.GetMasterVersion()
devel := r.Status.GetDevelVersion()
user := r.Status.GetUserVersion()
- header := fmt.Sprintf("%-35s %5s %-20s %-20s %-20s %-20s %-15s",
- r.Name(), shell.FormatDuration(dur), lastTag, master, devel, user, r.State())
+ header := fmt.Sprintf("%-35s %5s %-12s %-12s %-20s %-20s %-20s %-15s",
+ r.Name(), shell.FormatDuration(dur),
+ lastTag, target,
+ master, devel, user,
+ r.State())
return header
}
@@ -36,9 +40,10 @@ func msg(w http.ResponseWriter, s string) {
func (v *RepoList) PrintReport(w http.ResponseWriter, readonly string, onlydirty string, perfect string) {
var count int
- header := fmt.Sprintf("%-35s %5s %-20s %-20s %-20s %-20s %-15s",
+ header := fmt.Sprintf("%-35s %5s %-12s %-12s %-20s %-20s %-20s %-15s",
"REPO", "AGE",
- "LAST", "MASTER", "DEVEL", "USER",
+ "LAST", "TARGET",
+ "MASTER", "DEVEL", "USER",
"STATE")
msg(w, header)