class ConfigCmd(Cmd): """ Setup Config Cmd """ name = "config" def __init__(self, args): super().__init__(args) self.kafka = Kafka(args.config) def process(self): # TODO: Add actions here rc = self.kafka.config() return rc
class ConfigCmd(Cmd): """ Setup Config Cmd """ name = "config" def __init__(self, args): super().__init__(args) self.kafka = Kafka() def process(self, *args, **kwargs): kafka_servers = args[0] rc = self.kafka.config(kafka_servers) return rc