orca.utils.commandline ====================== .. py:module:: orca.utils.commandline .. autoapi-nested-parse:: Command-line execution utilities. Provides wrappers around subprocess for executing external commands with improved error handling and logging. Attributes ---------- .. autoapisummary:: orca.utils.commandline.log Functions --------- .. autoapisummary:: orca.utils.commandline.check_output Module Contents --------------- .. py:data:: log .. py:function:: check_output(cmd: List[str]) -> str Execute a command and return its stdout. Wrapper around subprocess.check_output with logging on failure. Does not use shell=True for security. :param cmd: Command and arguments as a list of strings. :returns: Decoded stdout from the command. :raises subprocess.CalledProcessError: If the command returns non-zero.