Host returns the name we're running commands on, which is empty if localhost (default).
()
| 181 | // Host returns the name we're running commands on, |
| 182 | // which is empty if localhost (default). |
| 183 | func (sh *Shell) Host() string { |
| 184 | cl := sh.ActiveSSH() |
| 185 | if cl == nil { |
| 186 | return "" |
| 187 | } |
| 188 | return "@" + sh.SSHActive + ":" + cl.Host |
| 189 | } |
| 190 | |
| 191 | // HostAndDir returns the name we're running commands on, |
| 192 | // which is empty if localhost (default), |