"""CLIContext: per-scenario state for the cli module (shell commands)."""from__future__importannotationsfromdataclassesimportdataclass,fieldfromtypingimportAny
[docs]@dataclassclassCLIContext:"""Holds all cli-module state for a scenario. Lives at ``context.steplib.cli`` and is reset between scenarios. Attributes: exit_code: Exit code of the last executed command. stdout: Standard output of the last executed command. stderr: Standard error output of the last executed command. variables: User-defined variables stored by steps. """exit_code:int|None=Nonestdout:str=""stderr:str=""variables:dict[str,Any]=field(default_factory=dict)