mesos / kafka

Apache Kafka on Apache Mesos
Apache License 2.0
414 stars 140 forks source link

CLI does produce a WARN if $TERM is not set #129

Closed sargun closed 9 years ago

sargun commented 9 years ago

Example:

# TERM= dcos kafka topic
Topic management commands
Usage: topic <command>

Commands:
  list       - list topics
  add        - add topic
  update     - update topic
  rebalance  - rebalance topics

Run `help topic <command>` to see details of specific command

tput: No value for $TERM and no -T specified
Error: command required
dmitrypekar commented 9 years ago

@sargun

tput: No value for $TERM and no -T specified is actually a warning.

Error is - 'Error: command required' You should use dcos kafka topic list|add|update|rebalance instead.

dmitrypekar commented 9 years ago

Need to verify about this WARN. This should be already fixed in recent dcos-kafka project.

sargun commented 9 years ago

Yeah, although it's a warning, it interferes with some people's programmatic usage of the Kafka CLI -- any reason not to fall back to a dumb terminal (80 cols, no colours, etc..) if the variable isn't set?

dmitrypekar commented 9 years ago

This should be already fixed in latest dcos-kafka build. Need to recheck.

dmitrypekar commented 9 years ago

@sargun For now I can't reproduce it with dcos-kafka (it contains a fix). Could you please, recheck this and close the ticket?