

def _execute_command(self, name, args):
    '\n            Execute single command.\n\n            :param name:\n                Command name\n            :param args:\n                Command arguments\n        '
    new_cmd = self.remapped_commands.get(name)
    if new_cmd:
        name = new_cmd
    if (name not in self.commands):
        return self._error(gettext('Cli: Invalid command.'))
    (handler, _) = self.commands[name]
    return self._result(handler(*args))

dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/contrib/rediscli.py RedisCli._execute_command/original