Skip to content

cmd

Commands for starting or removing transfer service.

add(team_name=typer.Option(None, '--team-name', '-tn', help='Team name (e.g. demo-enhjoern-a)'))

Add a transfer service for a team.

Source code in dapla_team_cli/transfer_service/cmd.py
14
15
16
17
18
19
20
21
@app.command("add")
def add(
    team_name: Optional[str] = typer.Option(None, "--team-name", "-tn", help="Team name (e.g. demo-enhjoern-a)")  # noqa: B008
) -> None:
    """Add a transfer service for a team."""
    if team_name is None:
        team_name = get_team_name()
    add_ts(team_name)

remove(team_name=typer.Option(None, '--team-name', '-tn', help='Team name (e.g. demo-enhjoern-a)'))

Remove a transfer service for a team.

Source code in dapla_team_cli/transfer_service/cmd.py
24
25
26
27
28
29
30
31
@app.command("remove")
def remove(
    team_name: Optional[str] = typer.Option(None, "--team-name", "-tn", help="Team name (e.g. demo-enhjoern-a)")  # noqa: B008
) -> None:
    """Remove a transfer service for a team."""
    if team_name is None:
        team_name = get_team_name()
    remove_ts(team_name)