-
Notifications
You must be signed in to change notification settings - Fork 37
Add overridable parameter #367
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
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
# Changes: - Add options to NewParams method to allow overriding certain parameters. This can benefit other projects to import this CLI as library. Signed-off-by: Sayan Biswas <sayan-biswas@live.com>
4fd3106 to
43bde3c
Compare
|
/test release-notes-linter |
|
@sayan-biswas: No presubmit jobs available for shipwright-io/cli@main DetailsIn response to this:
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-sigs/prow repository. |
hasanawad94
left a comment
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
adambkaplan
left a comment
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.
Mostly style nits here - will sleep on this a bit for marking this PR approved.
| return p.follower, nil | ||
| } | ||
|
|
||
| // WithClientset Use explicit clientset |
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.
nit: use clearer godoc
| // WithClientset Use explicit clientset | |
| // WithClientset updates the shp CLI to use the provided Kubernetes and Build clientsets |
| } | ||
| } | ||
|
|
||
| // WithConfigFlags Use explicit config flags |
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.
nit: use clearer godoc
| // WithConfigFlags Use explicit config flags | |
| // WithConfigFlags updates the shp CLI to use the provided configuration flags |
| } | ||
| } | ||
|
|
||
| // WithNamespace Use explicit namespace |
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.
nit: clearer godoc
| // WithNamespace Use explicit namespace | |
| // WithNamespace updates the shp CLI to use the provided namespace |
|
I also recommend adding a release note. Developers who import this repo as a library are end users, too! |
Changes
Submitter Checklist
See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.
Release Notes