(args, encoding: str = "utf-8")
return line, returncode
Returns the first line of the output of a command, stripped from any
    trailing newlines, and the exit code of the command.
Returns the first line of the output of a command, stripped from any
    trailing newlines, and the exit code of the command.
Returns the first line of the output of a command stripped from any trailing newlines and the exit code of the command .
def get_output_single_line(args, encoding: str = "utf-8") -> Tuple[str, int]:
    """Returns the first line of the output of a command, stripped from any
    trailing newlines, and the exit code of the command.
    """
    stdout, returncode = get_output(args, encoding=encoding)
    line, _, _ = stdout.partition("\n")
    return line, returncode
def get_output_single_line ( args , encoding : str = "utf-8" ) -> Tuple [ str , int ] : stdout , returncode = get_output ( args , encoding = encoding ) line , _ , _ = stdout . partition ( "\n" ) return line , returncode