law.cli.run#

“law run” cli subprogram.

setup_parser(sub_parsers: _SubParsersAction) None[source]#

Sets up the command line parser for the run subprogram and adds it to sub_parsers.

execute(args: Namespace, argv: list[str]) int[source]#

Executes the run subprogram with parsed commandline args.

read_task_from_index(task_family: str, index_file: str | Path | None = None) tuple[str, str, str] | None[source]#

Returns module id, task family and space-separated parameters in a tuple for a task given by task_family from the index_file. When None, the index_file refers to the default as defined in law.config. Returns None when the task could not be found.