-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add my own custom kafka commands into this? #21
Comments
Hi there, thank you! The steps look like this:
For example, take the elif command.startswith(valid_command_prefixes):
self.execute_valid_command(command) Then, it will match the following block on line 63: if command.startswith(constants.COMMAND_KAFKA_TOPICS):
final_command = self.handle_kafka_topics_command(command) We then handle the kafka topics command. This is where we automatically add flags such as def handle_kafka_topics_command(self, command):
command += self.handle_bootstrap_or_zookeeper_flag(command)
command += self.handle_admin_client_settings(command)
return command Lastly, we end up with a If you want to implement non-Kafka based commands, look at the I hope that helps! |
Thanks for the info Shawn. I have couple of questions.
|
Happy to help, @xargs-Pratix!
Hope that helps! |
Hi Shawn- First of all great work!. I'm working on adding extra kafka commands into this shell. Any pointers? I was able to add to add custom command into the menu but options execution throws error. I thought to reach out to you for the pointers so that I can add some commands to this and take it forward.
Thanks
The text was updated successfully, but these errors were encountered: