def set_project()

in solutions_builder/cli/cli.py [0:0]


def set_project(
        project_id,
        solution_path: Annotated[Optional[str], typer.Argument()] = ".",):
  "Set 'project_id' and 'project_number' variables."
  confirm(
      f"This will set project_id to '{project_id}' and update project_number. "
      + "Continue?")

  set_var("project_id", project_id, solution_path)
  update_global_var("project_id", project_id, solution_path)

  project_number = get_project_number(project_id)
  set_var("project_number", project_number, solution_path)
  update_global_var("project_number", project_number, solution_path)