-
Notifications
You must be signed in to change notification settings - Fork 263
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
Bool flags in the paired --foo
and --no-foo
format
#346
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very neat idea and very useful. I have some comments though and wonder whether we should allow values to these flags add all or just check for their existence (what I would suggest).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this! Please address the other comments and would lgtm
/test pull-knative-client-integration-tests |
@maximilien I think I did address @rhuss's comments, though unfortunately by pointing to an issue I opened upstream. I don't think I can do better than that RN. |
/retest |
I'm fine, but maybe we could just check for the existence of a flag via |
…s, for this & other cases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. some minor nits though, feel free to fix or not. would merge then on Monday in any case.
Co-Authored-By: Roland Huß <[email protected]>
The following is the coverage report on pkg/.
|
/retest |
overall it looks good - just a few minor comments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good, 👍 There are two suggestions
- error message string to return the actual value provided by user than defaulting to
false
- removing always passing if condition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one suggestion, mark it as resolved otherwise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: maximilien, navidshaikh, sixolet 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 |
* Allow cluster size parameters to be set by caller. * Address PR comments. * Address PR feedback. * Fix comment.
Adds a library to add and understand paired boolean flags in the format we agreed upon by voting. Uses it for
--log-http
, for now.