adevinta / zoe

The Kafka CLI for humans
https://adevinta.github.io/zoe
MIT License
287 stars 21 forks source link

[Topic create] add ability to inject extra config #8

Closed wlezzar closed 4 years ago

wlezzar commented 4 years ago

This PR adds the ability to inject extra config at topic creation time. Example:

zoe topics create my-topic --partitions 5 --replication-factor 1 --config retention.ms=3600
rsaltrelli commented 4 years ago

How would you specify multiple configs? Like retention.ms and cleanup.policy in the same create topic command.

rsaltrelli commented 4 years ago

Oh, I see in the new usage. Something like this?

zoe topics create my-topic --partitions 5 --replication-factor 1 --config retention.ms=3600 --config cleanup.policy=compact
wlezzar commented 4 years ago

Yes exactly, it's a parameter that can be specified multiple times