def cmd_func(self, command: str) -> Optional[Callable]:
        """
        Get the function for a command
        :param command: the name of the command
        """
        func_name = self.cmd_func_name(command)
        if func_name:
            return getattr(self, func_name)
def cmd_func ( self , command : str ) -> Optional [ Callable ] : func_name = self . cmd_func_name ( command ) if func_name : return getattr ( self , func_name )
Get the function for a command
        :param command: the name of the command