[mike@mwxm4]
This commit is contained in:
+7
-7
@@ -82,7 +82,7 @@ func overviewAll() {
|
||||
})
|
||||
|
||||
if len(rows) == 0 {
|
||||
fmt.Println(col(cGray, "nothing under "+BASE))
|
||||
fmt.Println(col(cDark, "nothing under "+BASE))
|
||||
return
|
||||
}
|
||||
|
||||
@@ -109,9 +109,9 @@ func overviewAll() {
|
||||
if initN > 0 {
|
||||
summary += fmt.Sprintf(" · %d to init", initN)
|
||||
}
|
||||
fmt.Println(col(cGray, summary))
|
||||
fmt.Println(col(cDark, summary))
|
||||
if srv.err != nil {
|
||||
fmt.Println(col(cGray, " git server not reachable — local view only"))
|
||||
fmt.Println(col(cDark, " git server not reachable — local view only"))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -301,7 +301,7 @@ func syncColor(s projStatus) string {
|
||||
case s.ahead > 0:
|
||||
return cGreen
|
||||
default:
|
||||
return cGray
|
||||
return cDark
|
||||
}
|
||||
}
|
||||
|
||||
@@ -339,8 +339,8 @@ func formatProjStatus(s projStatus, w overviewWidths) string {
|
||||
if !s.lastWhen.IsZero() {
|
||||
age = shortAge(time.Since(s.lastWhen))
|
||||
}
|
||||
b.WriteString(" " + col(cGray, padRight(s.lastHost, w.host)))
|
||||
b.WriteString(" " + col(cGray, fmt.Sprintf("%4s", age)))
|
||||
b.WriteString(" " + col(cDark, padRight(s.lastHost, w.host)))
|
||||
b.WriteString(" " + col(cDark, fmt.Sprintf("%4s", age)))
|
||||
}
|
||||
if w.hint {
|
||||
hint := ""
|
||||
@@ -350,7 +350,7 @@ func formatProjStatus(s projStatus, w overviewWidths) string {
|
||||
b.WriteString(" " + col(cYellow, padRight(hint, hintWidth)))
|
||||
}
|
||||
if len(s.mirrors) > 0 {
|
||||
b.WriteString(col(cGray, " → "+strings.Join(s.mirrors, " ")))
|
||||
b.WriteString(col(cDark, " → "+strings.Join(s.mirrors, " ")))
|
||||
}
|
||||
return strings.TrimRight(b.String(), " ")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user