Skip to content

init

P = ParamSpec('P') module-attribute

T = TypeVar('T') module-attribute

OnlyWithCommand

all_cmds: List[str] = [cmd[0] if isinstance(cmd, list) else cmd for cmd in commands] instance-attribute

cmd: List[str] = command if isinstance(command, list) else [command] instance-attribute

cmd_path: str | None = which(self.cmd[0]) instance-attribute

__call__(function)

__init__(*commands)

call_cmd(cmd)