(parts []string)
| 183 | } |
| 184 | |
| 185 | func valCommand(parts []string) ([]string, error) { |
| 186 | |
| 187 | if len(parts) < 1 { |
| 188 | return nil, errors.New("No command specified") |
| 189 | } |
| 190 | |
| 191 | return parts, nil |
| 192 | } |
| 193 | |
| 194 | func (sshCtx *SSHContext) CmdInteractive(host Host, timeout int, parts ...string) { |
| 195 | ctx, cancel := utils.ContextWithConditionalTimeout(context.TODO(), timeout) |
no outgoing calls
no test coverage detected