code: def single_line_stdout(cmd, expected_errors=(), shell=True, sudo=False, quiet=False):
      
      return single_line(stdout_result(cmd, expected_errors, shell, sudo, quiet))
docs: Runs a command and returns the first line of the result, that would be written to `stdout`, as a string.
      The output itself can be suppressed.
  
      :param cmd: Command to run.
      :type cmd: unicode
      :param expected_errors: If the return code is non-zero, but found in this tuple, it will be ignored. ``None`` is
        returned in this case.
      :type expected_errors: tuple
      :param shell: Use a shell.
      :type shell: bool
      :param sudo: Use `sudo`.
      :type sudo: bool
      :param quiet: If set to ``True``, does not show any output.
      :type quiet: bool
      :return: The result of the command as would be written to `stdout`.
      :rtype: unicode