gamesheet_sdk.teams.cli.commands.schedule.game_runner module

Teams-side execution of the unified game option set.

The gamesheet-teams schedule games commands are thin: they declare the shared option set from gamesheet_sdk.common.cli.game_options — the same set gamesheet-admin games declares — and hand their collected parameters here, which translates them into the teams gateway calls in gamesheet_sdk.teams.schedule.

--association-id and --league-id are deliberately absent from the option set even though the gateway payload carries both: they are wholly determined by --season-id, so this module derives them from GET /api/seasons rather than asking for values gamesheet-admin has no equivalent for.

gamesheet_sdk.teams.cli.commands.schedule.game_runner.run_create(ctx, params)[source]

Create a scheduled game from the unified option set.

Parameters:
  • ctx (Context) – Click context object.

  • params (dict[str, Any]) – The command’s collected parameters.

gamesheet_sdk.teams.cli.commands.schedule.game_runner.run_delete(ctx, params)[source]

Delete a scheduled game and report the outcome.

Parameters:
  • ctx (Context) – Click context object.

  • params (dict[str, Any]) – The command’s collected parameters.

gamesheet_sdk.teams.cli.commands.schedule.game_runner.run_get(ctx, params)[source]

Show one scheduled game.

Parameters:
  • ctx (Context) – Click context object.

  • params (dict[str, Any]) – The command’s collected parameters.

gamesheet_sdk.teams.cli.commands.schedule.game_runner.run_list(ctx, params)[source]

List a team’s scheduled games.

Parameters:
  • ctx (Context) – Click context object.

  • params (dict[str, Any]) – The command’s collected parameters.

gamesheet_sdk.teams.cli.commands.schedule.game_runner.run_update(ctx, params)[source]

Update a scheduled game from the unified option set.

Parameters:
  • ctx (Context) – Click context object.

  • params (dict[str, Any]) – The command’s collected parameters.