()
| 1140 | } |
| 1141 | |
| 1142 | func (opts SSHOpts) String() string { |
| 1143 | stringRepr := "" |
| 1144 | if opts.SSHUser != "" { |
| 1145 | stringRepr = opts.SSHUser + "@" |
| 1146 | } |
| 1147 | stringRepr = stringRepr + opts.SSHHost |
| 1148 | if opts.SSHPort != "22" && opts.SSHPort != "" { |
| 1149 | stringRepr = stringRepr + ":" + fmt.Sprint(opts.SSHPort) |
| 1150 | } |
| 1151 | return stringRepr |
| 1152 | } |
| 1153 | |
| 1154 | func mergeKeywords(oldKeywords *wconfig.ConnKeywords, newKeywords *wconfig.ConnKeywords) *wconfig.ConnKeywords { |
| 1155 | if oldKeywords == nil { |
no outgoing calls
no test coverage detected