From 1f3e32f3f565cbdc9f635adcd02fbf950300d61e Mon Sep 17 00:00:00 2001 From: Kamal Mustafa Date: Sun, 14 Oct 2018 15:46:42 +0900 Subject: [PATCH] Show connected status for each host. It so often I have to run simple command like ls or pwd first to know whether I've been connected to all hosts. --- sup.go | 1 + 1 file changed, 1 insertion(+) diff --git a/sup.go b/sup.go index d815068..609ec1b 100644 --- a/sup.go +++ b/sup.go @@ -97,6 +97,7 @@ func (sup *Stackup) Run(network *Network, envVars EnvList, commands ...*Command) var clients []Client for client := range clientCh { if remote, ok := client.(*SSHClient); ok { + fmt.Println("Connected", remote.host) defer remote.Close() } _, prefixLen := client.Prefix()