Skip to main content

openhands.linter.utils.cmd

run_cmd

def run_cmd(cmd: str, cwd: str | None = None) -> str | None

Run a command and return the output.

If the command succeeds, return None. If the command fails, return the stdout.

check_tool_installed

def check_tool_installed(tool_name: str) -> bool

Check if a tool is installed.