def _execute_command(self, name, args):
        # Do some remapping
        new_cmd = self.remapped_commands.get(name)
        if new_cmd:
            name = new_cmd

        # Execute command
        if name not in self.commands:
            return self._error(gettext('Cli: Invalid command.'))

        handler, _ = self.commands[name]
        return self._result(handler(*args))
Execute single command.
dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/contrib/rediscli.py/RedisCli._execute_command