from pathlib import Path
import shutil


def get_cmd_path(cmd: str) -> Path:
    """Return file path of the command."""
    start_script = shutil.which(cmd)
    if not start_script:
        raise AssertionError(f"The `{cmd}` not found on PATH")
    return Path(start_script)