Skip to content

cmd

State file command implementations.

remove()

Removes the state file.

Source code in dapla_team_cli/pr/state/cmd.py
28
29
30
31
32
33
34
35
@app.command()
def remove() -> None:
    """Removes the state file."""
    state_object_name = state_object_handler.user_select_run(show_other_users=True)
    if not state_object_name:
        sys.exit(1)

    remove_state(state_object_name)

show(repo_name=typer.Option(None, '--repo-name', '-rn', help='The name of the repo you want to show the state for'))

Visualises the state of the run.

Source code in dapla_team_cli/pr/state/cmd.py
17
18
19
20
21
22
23
24
25
@app.command()
def show(
    repo_name: Optional[str] = typer.Option(None, "--repo-name", "-rn", help="The name of the repo you want to show the state for")
) -> None:
    """Visualises the state of the run."""
    if state := state_object_handler.get_user_state():
        show_state(state, repo_name)
    else:
        sys.exit(1)