Skip to content
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

Allow to "mute" the output of the Kafka topic creation command #1429

Open
ppatierno opened this issue Feb 12, 2022 · 1 comment
Open

Allow to "mute" the output of the Kafka topic creation command #1429

ppatierno opened this issue Feb 12, 2022 · 1 comment
Assignees

Comments

@ppatierno
Copy link
Contributor

The rhoas kafka topic create allows to specify the output of the command as YAML and JSON.
I was thinking that sometimes for automated tasks and avoid to pollute the console could be useful to "mute" the output, exiting ok if the topic was creating but without printing any representation of the topic info. Maybe an --output none could be enough.

@wtrocki
Copy link
Collaborator

wtrocki commented Feb 12, 2022

I think we might only print one sentence for topic by default. Or use some output as suggested

As workarounds for now we offer users to use std and error stream pipes.

rhoas kafka topic create --name=test /
 -y -o=json 1> /dev/null

I think we should also document this as it is not obvious pattern: It will still show errors or other messages but ignore often large standard output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants