Skip to content

ZSH plugin to have Kafka automatic completion for most CLI tools

Notifications You must be signed in to change notification settings

Dabz/kafka-zsh-completions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Kafka ZSH completion

This projects aims at developing Kafka completion scripts. The scripts may be contributed to another project when stable enough.

Important information

For topic completion, you must:

  1. Have kcat in your ZSH PATH
  2. $HOME/.config/kcat.conf configured to connect to your Apache Kafka cluster

Usage

To start using the Kafka autocompletion just download the repository locally and source kafka.plugin.zsh

Supported completion

  • kafka-topics
  • kafka-acls
  • kafka-configs
  • kafka-console-producer
  • kafka-console-consumer
  • kafka-consumer-perf-test
  • kafka-producer-perf-test
  • kafka-avro-console-consumer
  • kafka-avro-console-producer
  • kafka-broker-api-versions
  • kafka-consumer-groups
  • kafka-delegation-tokens
  • kafka-dump-log
  • kafka-log-dirs
  • kafka-verifiable-consumer
  • kafka-verifiable-producer
  • kafka-streams-application-reset
  • kafka-mirror-maker
  • kafka-delete-records
  • replicator

Notes

  • The source of information used for the completion is gathered from the usage of the CLI tools.
  • This script relies on Apache Kafka Confluent distribution (either Open Source or Enterprise).
  • To avoid reloading and parsing all the information at the beginning of each session, a script kafka.plugin.zsh.generator is generating the kafka.plugin.zsh auto-completion file with hardcoded information.

Examples

asciicast

About

ZSH plugin to have Kafka automatic completion for most CLI tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages