src/utils/command.cpp
/**
 * Read a line from the commands output stream
 */
Read a line from the commands output stream
Read a line from the commands output stream
string command<output_policy::REDIRECTED>::readline() {
  if (!m_stdout_reader) {
    m_stdout_reader = make_unique<fd_stream<std::istream>>(get_stdout(PIPE_READ), false);
  }
  string s;
  std::getline(*m_stdout_reader, s);
  return s;
}
string command < output_policy :: REDIRECTED > :: readline ( ) { if ( ! m_stdout_reader ) { m_stdout_reader = make_unique < fd_stream < std :: istream > > ( get_stdout ( PIPE_READ ) , false ) ; } string s ; std :: getline ( * m_stdout_reader , s ) ; return s ; }
Read a line from the commands output stream
Read a line from the commands output stream