Source code for ferrosoft.ops.commands

import subprocess


[docs] def run(*args, **kwargs) -> subprocess.CompletedProcess: """ Run is like subprocess.run, except it logs the command to stdout, and it enables exit code check by default. """ print("RUN: %s" % args) check = kwargs.pop("check", True) return subprocess.run(*args, check=check, **kwargs)