[mike@mwxm4]
This commit is contained in:
+9
-3
@@ -104,9 +104,15 @@ func showRemotes() {
|
||||
if kind == "" {
|
||||
kind = remoteKindName(detectRemoteKind(t.URL, "")) + " (detected)"
|
||||
}
|
||||
fmt.Printf(" %s%s %s\n",
|
||||
col(cGreen, padRight("@"+t.Name, 14)), t.URL,
|
||||
col(cDark, kind+", "+vis+", key "+maskSecret(t.Key)))
|
||||
// an inactive target is still a target, just not an automatic one: it
|
||||
// steps back a shade instead of dropping out of the listing
|
||||
name, state := col(cGreen, padRight("@"+t.Name, 14)), ""
|
||||
if !t.isActive() {
|
||||
name = col(cGrey, padRight("@"+t.Name, 14))
|
||||
state = ", inactive (only when named)"
|
||||
}
|
||||
fmt.Printf(" %s%s %s\n", name, t.URL,
|
||||
col(cDark, kind+", "+vis+", key "+maskSecret(t.Key)+state))
|
||||
}
|
||||
for _, n := range incomplete {
|
||||
fmt.Printf(" %s%s\n", col(cRed, padRight("@"+n, 14)), col(cRed, "incomplete: url or key missing"))
|
||||
|
||||
Reference in New Issue
Block a user