  
  
  def project_exec(project_dir: Path, subcommand: str):
      config = load_project_config(project_dir)
      config_commands = config.get("commands", [])
      variables = config.get("variables", {})
      commands = {cmd["name"]: cmd for cmd in config_commands}
 
</s> remove @project_cli.command("exec")
def project_exec_cli(
    # fmt: off
    project_dir: Path = Arg(..., help="Location of project directory", exists=True, file_okay=False),
    subcommand: str = Arg(..., help="Name of command defined in project config"),
    # fmt: on
):
    """Internals"""
    project_exec(project_dir, subcommand)


 </s> add  </s> remove     """Simulate a CLI help prompt using the info available in the project config."""
 </s> add     """Simulate a CLI help prompt using the info available in the project config.

    project_dir (Path): The project directory.
    subcommand (Optional[str]): The subcommand or None. If a subcommand is
        provided, the subcommand help is shown. Otherwise, the top-level help
        and a list of available commands is printed.
    """ </s> remove @project_cli.command(
    "run", context_settings={"allow_extra_args": True, "ignore_unknown_options": True},
)
def project_run_cli(
    # fmt: off
    ctx: typer.Context,
    project_dir: Path = Arg(..., help="Location of project directory", exists=True, file_okay=False),
    subcommand: str = Arg(None, help="Name of command defined in project config"),
    show_help: bool = Opt(False, "--help", help="Show help message and available subcommands")
    # fmt: on
):
    """Run scripts defined in the project."""
    if show_help or not subcommand:
        print_run_help(project_dir, subcommand)
    else:
        project_run(project_dir, subcommand, *ctx.args)


 </s> add 
    """Execute a command defined in the project config.

    project_dir (Path): Path to project directory.
    subcommand (str): Name of command to run.
    """
  
  
  def project_exec(project_dir: Path, subcommand: str):
    """Execute a command defined in the project config.

    project_dir (Path): Path to project directory.
    subcommand (str): Name of command to run.
    """
      config = load_project_config(project_dir)
      config_commands = config.get("commands", [])
      variables = config.get("variables", {})
      commands = {cmd["name"]: cmd for cmd in config_commands}
keep keep add keep keep keep keep
 Tidy up, document and add custom clone logic 
spacy/cli/project.py