pynenc.cli.runner_cli¶
Module Contents¶
Functions¶
Add subparsers for runner-related commands to the main argparse parser. |
|
Execute the ‘start’ command for a Pynenc runner. |
API¶
- pynenc.cli.runner_cli.add_runner_subparser(subparsers: argparse._SubParsersAction) None[source]¶
Add subparsers for runner-related commands to the main argparse parser.
This function sets up the CLI structure for commands related to the runner, including subcommands for starting a runner and showing its configuration. It integrates runner-specific commands into the broader CLI tool.
- Parameters:
subparsers (argparse._SubParsersAction) – The subparsers object from the main parser.
- pynenc.cli.runner_cli.start_runner_command(args: pynenc.cli.namespace.PynencCLINamespace) None[source]¶
Execute the ‘start’ command for a Pynenc runner.
This command initiates the runner associated with the Pynenc application instance. It ensures that the provided application instance is valid and not a DummyRunner, then starts the runner’s execution. An error is raised if the runner is not suitable for starting (e.g., a DummyRunner).
- Parameters:
args (PynencCLINamespace) – The parsed CLI arguments, including the Pynenc application instance.