Abstract away the transport in cli_pipe.c