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

Adding Format Output to CLI #331

Closed
fabianbaier opened this issue Jun 12, 2019 · 2 comments
Closed

Adding Format Output to CLI #331

fabianbaier opened this issue Jun 12, 2019 · 2 comments
Labels
component/cli kubectl kudo a.k.a. kudoctl kind/enhancement
Milestone

Comments

@fabianbaier
Copy link
Member

What would you like to be added:

I'd like to have the option to determine how the output of the CLI should look like. Right now we just fmt.Println but what's actually needed is similar like in kubectl itself the option to decide how the output should look like, e.g.: kubectl kudo get instance kafka -o yaml

Why is this needed:

This helps not just for testing the CLI behavior but also gives more options in how to format or sort the output of certain commands. It should be closer to kubectl itself ( see also https://kubernetes.io/docs/reference/kubectl/overview/#output-options ).

@kensipe
Copy link
Member

kensipe commented Mar 10, 2020

We need to be able to specify format type -o yaml and -o json

@kensipe kensipe added this to the 0.12.0 milestone Mar 10, 2020
@kensipe kensipe modified the milestones: 0.12.0, 0.13.0 Apr 9, 2020
@alenkacz
Copy link
Contributor

We've partially added it to some commands, let's rather open an issue per-command than have this big umbrella issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/cli kubectl kudo a.k.a. kudoctl kind/enhancement
Projects
None yet
Development

No branches or pull requests

3 participants