apologies.cli

Implementations for command-line (CLI) tools.

Module Contents

apologies.cli.demo(argv: list[str], _stdout: IO[str], _stderr: IO[str]) None

Run a game with simulated players, displaying output on the terminal.

apologies.cli.simulation(argv: list[str], _stdout: IO[str], _stderr: IO[str]) None

Run a simulation and display results.

apologies.cli.render(_argv: list[str], stdout: IO[str], _stderr: IO[str]) None

Render an empty board.

apologies.cli.example(argv: list[str], stdout: IO[str], stderr: IO[str]) None

Execute the example script, which just writes some input to its outputs.

apologies.cli.cli(script: str) None

Run the main routine for the named script.

Parameters:

script (str) – Name of the script to execute