Skip to content

feat(helm): Add --col-width to helm list and helm history - #2836

Merged
bacongobbler merged 3 commits into
helm:masterfrom
rocky-nupt:feature-full-output
Jan 10, 2018
Merged

bacongobbler merged 3 commits into
helm:masterfrom
rocky-nupt:feature-full-output

Conversation

@rocky-nupt

Copy link
Copy Markdown
Contributor

The default maximum length of the output table is 60 chars. When the length is greater than 60, the content will be omitted. This patch adds -f and --full-output to helm list and helm history which can display full information of releases on the screen.

Closes #2828

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 22, 2017
@rocky-nupt
rocky-nupt force-pushed the feature-full-output branch from 40dcc4f to b590de2 Compare August 22, 2017 05:44
@jascott1

jascott1 commented Sep 6, 2017

Copy link
Copy Markdown
Contributor

@rocky-nupt What do you think about changing to --output wide as recently suggested in the original issue? That matches k8s and allows us to expand to other formats later.

@jascott1

jascott1 commented Sep 6, 2017

Copy link
Copy Markdown
Contributor

Case in point, -o would allow us to eventually handle json as requested here:
#1534

@bacongobbler

Copy link
Copy Markdown
Member

I'm also personally in favour of --output rather than --full-output.

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/small labels Sep 8, 2017
@rocky-nupt
rocky-nupt force-pushed the feature-full-output branch 3 times, most recently from 9ffd202 to 55460f0 Compare September 8, 2017 06:58
@rocky-nupt

Copy link
Copy Markdown
Contributor Author

I agree with you. I have followed your suggestion. Thanks! @jascott1

@jascott1

Copy link
Copy Markdown
Contributor

@rocky-nupt Looking great! One thing, can you modify the usage text to list the 'wide' option more like kubectl? Something like

specifies the output format: short|wide

Just a nit but from what I can tell kubectl doesn't have a 'short', its more of a default mode with optional --output to change it. If we don't do that is there a better term than short that would fit better with wide? (Id like to keep wide since it follows kubectl)

@rocky-nupt

Copy link
Copy Markdown
Contributor Author

@jascott1 Yes, I like "wide" too which follows kubectl. I have changed it.

@bacongobbler bacongobbler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like we should be erroring out on invalid format types. For example one may assume that if --output=json works, it should output as JSON. Can we make that change here to perform some form of argument sanity checking?

@sbuliarca

Copy link
Copy Markdown

I managed to test this, and it works as expected. Thank you for the changes.
I agree that a sanity check on the --output argument value would be nice.

@jascott1

jascott1 commented Jan 9, 2018

Copy link
Copy Markdown
Contributor

Hi @rocky-nupt

Thanks for the PR. Do you think you will be able to resolve conflicts and add the check @bacongobbler asked for?

Thanks,
Justin

rocky-nupt and others added 2 commits January 10, 2018 11:10
The default maximum length of the output table is 60 chars.
When the length is greater than 60, the content will be omitted.
This patch adds -f and --full-output to helm list and helm history
which can display full information of releases on the screen.

Closes helm#2828
@rocky-nupt
rocky-nupt force-pushed the feature-full-output branch 4 times, most recently from db9f898 to f459d96 Compare January 10, 2018 04:16
The default maximum length of the output table is 60 chars.
When the length is greater than 60, the content will be omitted.
This patch adds -f and --full-output to helm list and helm history
which can display full information of releases on the screen.

Closes helm#2828
@rocky-nupt

Copy link
Copy Markdown
Contributor Author

How about changing 'output' to 'col-width' here? I think 'output' can be similar to it in kubectl while here only needs to change the column width. We can create a new PR about 'output'. @jascott1 @bacongobbler

@bacongobbler bacongobbler changed the title feat(helm): Add --full-output to helm list and helm history feat(helm): Add --col-width to helm list and helm history Jan 10, 2018
@bacongobbler
bacongobbler merged commit a6381e8 into helm:master Jan 10, 2018
@tjanson tjanson mentioned this pull request Nov 16, 2023
2 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. feature size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants