Skip to content

cmd

Commands for preparing a run.

ready(folder_path=typer.Option(None, '--folder-path', '-f', help='Path to root folder containing all subfolders in which pull requests are opened'), state_file_name=typer.Option(None, '--state-name', '-s', help='Name of the state file to generate'))

Sets up the state file and prepares the run.

Source code in dapla_team_cli/pr/ready/cmd.py
14
15
16
17
18
19
20
21
22
def ready(
    folder_path: Optional[Path] = typer.Option(
        None, "--folder-path", "-f", help="Path to root folder containing all subfolders in which pull requests are opened"
    ),
    state_file_name: Optional[str] = typer.Option(None, "--state-name", "-s", help="Name of the state file to generate"),
) -> None:
    """Sets up the state file and prepares the run."""
    generate(state_file_name, folder_path)
    print("\n[yellow]Next step: Perhaps you would want to open PRs with 'dpteam pr open' next?")