(cmd *cobra.Command, args []string)
| 178 | } |
| 179 | |
| 180 | func connConnectRun(cmd *cobra.Command, args []string) error { |
| 181 | connName := args[0] |
| 182 | if err := validateConnectionName(connName); err != nil { |
| 183 | return err |
| 184 | } |
| 185 | data := wshrpc.ConnRequest{ |
| 186 | Host: connName, |
| 187 | LogBlockId: RpcContext.BlockId, |
| 188 | } |
| 189 | err := wshclient.ConnConnectCommand(RpcClient, data, &wshrpc.RpcOpts{Timeout: 60000}) |
| 190 | if err != nil { |
| 191 | return fmt.Errorf("connecting connection: %w", err) |
| 192 | } |
| 193 | WriteStdout("connected connection %q\n", connName) |
| 194 | return nil |
| 195 | } |
| 196 | |
| 197 | func connEnsureRun(cmd *cobra.Command, args []string) error { |
| 198 | connName := args[0] |
nothing calls this directly
no test coverage detected