BuildProxyJump constructs a ProxyJump string
(user, host string)
| 178 | |
| 179 | // BuildProxyJump constructs a ProxyJump string |
| 180 | func BuildProxyJump(user, host string) string { |
| 181 | if user != "" { |
| 182 | return fmt.Sprintf("%s@%s", user, host) |
| 183 | } |
| 184 | return host |
| 185 | } |
| 186 | |
| 187 | // ParseProxyCommand attempts to parse an existing ProxyCommand |
| 188 | func ParseProxyCommand(cmd string) (*ProxyConfig, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected