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

feature: --no-headers flag for resource listing #262

Merged
merged 1 commit into from
Sep 3, 2019

Conversation

komaldhull
Copy link
Contributor

@komaldhull komaldhull commented Jul 12, 2019

Adds support for a "--no-headers" flag for resource listing commands that prints the default table output with column headers removed

Fixes #233

Release notes

--no-headers flag for resource listing

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added the cla: no Indicates the PR's author has not signed the CLA. label Jul 12, 2019
Copy link
Contributor

@knative-prow-robot knative-prow-robot left a comment

Choose a reason for hiding this comment

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

@komaldhull: 0 warnings.

In response to this:

Adds support for a "--no-headers" flag for resource listing commands that prints the default table output with column headers removed

Fixes #233

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@knative-prow-robot knative-prow-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jul 12, 2019
@knative-prow-robot
Copy link
Contributor

Hi @komaldhull. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@knative-prow-robot knative-prow-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 12, 2019
@rhuss
Copy link
Contributor

rhuss commented Jul 12, 2019

/ok-to-test

@knative-prow-robot knative-prow-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 12, 2019
Copy link
Contributor

@rhuss rhuss left a comment

Choose a reason for hiding this comment

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

Thanks ! will give a review on Monday, but could you please remove the .DS_Store file that you accidentally checked in ? (and please squash then to remove it from any commit)

@rhuss
Copy link
Contributor

rhuss commented Jul 13, 2019

@komaldhull : Also you would need to sign the google CLA. Thanks !

@knative-prow-robot knative-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 15, 2019
@knative-prow-robot knative-prow-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 15, 2019
docs/cmd/kn_revision_list.md Outdated Show resolved Hide resolved
docs/cmd/kn_service_list.md Outdated Show resolved Hide resolved
docs/cmd/kn_route_list.md Outdated Show resolved Hide resolved
pkg/kn/commands/revision/revision_list_test.go Outdated Show resolved Hide resolved
pkg/kn/commands/revision/revision_list_test.go Outdated Show resolved Hide resolved
@knative-prow-robot knative-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 15, 2019
@rhuss
Copy link
Contributor

rhuss commented Jul 15, 2019

/retest

Copy link
Contributor

@rhuss rhuss left a comment

Choose a reason for hiding this comment

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

looks good with some nit-pick.

Now checking why the test failed.

pkg/kn/commands/human_readable_flags.go Outdated Show resolved Hide resolved
@rhuss
Copy link
Contributor

rhuss commented Jul 16, 2019

/retest

There is yet another flaky test introduced which checks for a revision to be ready too fast.

@rhuss
Copy link
Contributor

rhuss commented Jul 16, 2019

@komaldhull could you squash you commits to a single commit ? It looks like that one of your current commits uses an email that is not CLAed. If you squash with your current account which has signed an CLA, and force push, then the CLA check should be happy.

@rhuss
Copy link
Contributor

rhuss commented Jul 16, 2019

Hmm, CLA check still failing ;-( Can you please check that you did the steps in #262 (comment) ? Probably as an corporate signer under IBM ?

If this is fixed, we are good to merge.

@komaldhull
Copy link
Contributor Author

looks like my request to be added as an IBM contributor is still pending :( just followed up so I should be added soon, I'll comment when I hear back.

@komaldhull
Copy link
Contributor Author

@rhuss I should be added to the CLA now!

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: yes Indicates the PR's author has signed the CLA. and removed cla: no Indicates the PR's author has not signed the CLA. labels Jul 17, 2019
@cppforlife
Copy link

waiting on #284 vs #283

@cppforlife cppforlife added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 22, 2019
@navidshaikh
Copy link
Collaborator

ping @komaldhull Can you update PR following recent changes to bool flags as referenced above?

@komaldhull
Copy link
Contributor Author

@navidshaikh my apologies for not seeing this earlier! could you please clarify what requires changing to meet the conventions? as far as I can tell, this PR matches the documentation (the default behavior is to print headers, so adding the flag "--no-headers" disables the headers), sorry if I'm missing something.

@navidshaikh
Copy link
Collaborator

@komaldhull : I think the current flag --no-headers looks good. Can you resolve the conflicts and rebase ?

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 2, 2019
@knative-metrics-robot
Copy link

The following is the coverage report on pkg/.
Say /test pull-knative-client-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/kn/commands/service/service_list_flags.go 46.7% 50.0% 3.3

@navidshaikh
Copy link
Collaborator

/hold cancel

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 3, 2019
Copy link
Collaborator

@navidshaikh navidshaikh left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 3, 2019
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: komaldhull, navidshaikh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot merged commit 6790961 into knative:master Sep 3, 2019
coryrc pushed a commit to coryrc/client that referenced this pull request May 14, 2020
…#262)

They're not available on these branches and will always fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support --no-headers flag for resource listing commands
7 participants