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

cli: do not output shell completion copyright header on error #10558

Merged
merged 1 commit into from Mar 12, 2020

Conversation

rolinh
Copy link
Member

@rolinh rolinh commented Mar 12, 2020

Before this commit, the copyright header was always displayed when running cilium completion ..., even on error such as when an invalid argument is provided.
This commit ensures that the copyright header is printed out only when shell completion is actually printed out.


This change is Reviewable

Before this commit, the copyright header was always displayed when
running `cilium completion ...`, even on error such as when an invalid
argument is provided. This commit ensures that the copyright header is
printed out only when shell completion is actually printed out.

Signed-off-by: Robin Hahling <robin.hahling@gw-computing.net>
@rolinh rolinh added release-note/bug This PR fixes an issue in a previous release of Cilium. area/cli Impacts the command line interface of any command in the repository. labels Mar 12, 2020
@rolinh rolinh requested a review from a team as a code owner March 12, 2020 15:14
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.8.0 Mar 12, 2020
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 45.611% when pulling d381e45 on pr/rolinh/cli-fix-completion-header-on-error into fac9924 on master.

@rolinh
Copy link
Member Author

rolinh commented Mar 12, 2020

test-me-please

@rolinh
Copy link
Member Author

rolinh commented Mar 12, 2020

net-next vm provisioning fail

Test flake, let's trigger it again.

@rolinh
Copy link
Member Author

rolinh commented Mar 12, 2020

test-me-please

@joestringer
Copy link
Member

joestringer commented Mar 12, 2020

I doubt that the CI tests are going to do anything that validates the changes in the command completion here (other than the compile precheck). Changes LGTM, if they break something we can fix it in a follow-up PR.

@joestringer joestringer merged commit 7c95ea2 into master Mar 12, 2020
1.8.0 automation moved this from In progress to Merged Mar 12, 2020
@joestringer joestringer deleted the pr/rolinh/cli-fix-completion-header-on-error branch March 12, 2020 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Impacts the command line interface of any command in the repository. release-note/bug This PR fixes an issue in a previous release of Cilium.
Projects
No open projects
1.8.0
  
Merged
Development

Successfully merging this pull request may close these issues.

None yet

3 participants