/kafka_tools_completion

Command completion for Kafka tools commands

Primary LanguagePerlMIT LicenseMIT

Kafka Tools Completion

Overview

Command completion for Kafka tools and bin commands

How to Enable

  • Source the files for use or place these inside your shell profile like: ~/.bash_profile or ~/.bashrc:
source ./kafkaAdmin
source ./kafkaBin

Examples of Completion

  • Complete for Admin tools is by typing: kafka-run-class.sh [TAB][TAB]
  • Complete for bin tools by typing (using zookeeper-security-migration for an example): bin/zookeeper-security-migration.sh --[TAB][TAB]

Which Tools Have Auto-Complete

How to use this file in ZSH

autoload -U compinit && compinit
autoload -U bashcompinit && bashcompinit
source /path/bash_completion_script