Skip to content

cmd

Commands for probing readiness.

apply()

Probes atlantis apply was successful.

Updates statefile accordingly.

Source code in dapla_team_cli/pr/probe/cmd.py
26
27
28
29
30
31
32
33
34
35
@app.command("apply")
def apply() -> None:
    """Probes atlantis apply was successful.

    Updates statefile accordingly.
    """
    if state := state_object_handler.get_user_state():
        probe_atlantis_apply(state)
    else:
        sys.exit(1)

plan()

Probes whether plans and checks were successful.

Updates statefile accordingly.

Source code in dapla_team_cli/pr/probe/cmd.py
14
15
16
17
18
19
20
21
22
23
@app.command("plan")
def plan() -> None:
    """Probes whether plans and checks were successful.

    Updates statefile accordingly.
    """
    if state := state_object_handler.get_user_state():
        probe_workflows(state)
    else:
        sys.exit(1)