X Tutup
Skip to content

Commit ba2b8d5

Browse files
committed
minor
1 parent cd32303 commit ba2b8d5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pkg/cmd/auth/status/status.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,21 @@ func statusRun(opts *StatusOptions) error {
170170
addMsg("%s Logged in to %s as %s", utils.GreenCheck(), hostname, utils.Bold(username))
171171
proto, _ := cfg.Get(hostname, "git_protocol")
172172
if proto != "" {
173-
addMsg("Git operations for %s configured to use %s protocol.", hostname, utils.Bold(proto))
173+
addMsg("%s Git operations for %s configured to use %s protocol.",
174+
utils.GreenCheck(), hostname, utils.Bold(proto))
174175
}
176+
addMsg("")
175177
}
176178

177179
// NB we could take this opportunity to add or fix the "user" key in the hosts config. I chose
178180
// not to since I wanted this command to be read-only.
179181
}
180182

181-
for hostname, lines := range statusInfo {
183+
for _, hostname := range hostnames {
184+
lines, ok := statusInfo[hostname]
185+
if !ok {
186+
continue
187+
}
182188
fmt.Fprintf(stderr, "%s\n", utils.Bold(hostname))
183189
for _, line := range lines {
184190
fmt.Fprintf(stderr, "\t%s\n", line)

0 commit comments

Comments
 (0)
X Tutup