Cli IO Adapter Class#
- class expectmine.io.adapters.cli_io_adapter.CliIoAdapter(**kwargs: Dict[Any, Any])[source]#
Bases:
BaseIoAdapterCliIo adapter to produce CliIo instances.
- get_instance(step_name: str, **kwargs: Dict[Any, Any]) BaseIo[source]#
Produces a scoped instance of type BaseIo.
- Parameters:
step_name (str) – The scope of the instance
- Returns:
A scoped instance of io.
- Return type:
- Example:
>>> get_instance("Instance 1") BaseStore
>>> get_instance("") ValueError("Step name can not be empty.")
- Raises:
TypeError – If the arguments have the wrong type.
ValueError – If step name is too long or empty.