Skip to content

Conversation

@sayan-biswas
Copy link
Contributor

@sayan-biswas sayan-biswas commented Jan 21, 2026

Changes

  • Add options to NewParams method to allow overriding certain parameters. This can benefit other projects to import this CLI as library.

Submitter Checklist

  • Includes tests if functionality changed/was added
  • Includes docs if changes are user-facing
  • Set a kind label on this PR
  • Release notes block has been filled in, or marked NONE

See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.

Release Notes

NONE

@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 21, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 21, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign adambkaplan for approval. For more information see the Code Review Process.

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

Details 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

# 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>
@sayan-biswas
Copy link
Contributor Author

/test release-notes-linter

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 21, 2026

@sayan-biswas: No presubmit jobs available for shipwright-io/cli@main

Details

In response to this:

/test release-notes-linter

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.

Copy link
Contributor

@hasanawad94 hasanawad94 left a comment

Choose a reason for hiding this comment

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

/LGTM

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 21, 2026
Copy link
Member

@adambkaplan adambkaplan left a 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
Copy link
Member

Choose a reason for hiding this comment

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

nit: use clearer godoc

Suggested change
// WithClientset Use explicit clientset
// WithClientset updates the shp CLI to use the provided Kubernetes and Build clientsets

}
}

// WithConfigFlags Use explicit config flags
Copy link
Member

Choose a reason for hiding this comment

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

nit: use clearer godoc

Suggested change
// WithConfigFlags Use explicit config flags
// WithConfigFlags updates the shp CLI to use the provided configuration flags

}
}

// WithNamespace Use explicit namespace
Copy link
Member

Choose a reason for hiding this comment

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

nit: clearer godoc

Suggested change
// WithNamespace Use explicit namespace
// WithNamespace updates the shp CLI to use the provided namespace

@adambkaplan
Copy link
Member

I also recommend adding a release note. Developers who import this repo as a library are end users, too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Indicates that a PR is ready to be merged. release-note-none size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants