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