monkey_wrench.cli._models module

class monkey_wrench.cli._models.CommandLineArguments[source]

Bases: Model

Pydantic model to validate CLI arguments.

It reads the CLI arguments from sys.argv, where sys.argv[0] is the path of the script which is being executed, i.e. monkey-wrench in this case. As a result, the actual arguments are sys.argv[1:].

task_file_path: ensure_path_does_not_end_with_slash)]]

The path to the task file, which must be an existing valid YAML file.

classmethod validate_task_filepath_existence(data: Any) Any[source]

Check that the task file exists and assign it to the class variable.

classmethod validate_number_of_inputs(data: Any) Any[source]

Ensure that the number of input arguments is correct.