{"modulePath":"github.com/AlaudaDevops/toolbox/pr-cli","version":"v0.0.0-20261019083812-38d5e0ad0d24","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cli\n\n## Types\n\n```go\ntype CherryPicker struct {\n\t*logrus.Logger\n\t// contains filtered or unexported fields\n}\n```\nCherryPicker handles Git CLI cherry-pick operations\n\n```go\nfunc NewCherryPicker(logger *logrus.Logger, repoURL, token, owner, repo string, prID int) *CherryPicker\n```\nNewCherryPicker creates a new CherryPicker instance\n\n```go\nfunc NewCherryPickerForPlatform(logger *logrus.Logger, platform Platform, token, owner, repo, baseURL string, prID int) (*CherryPicker, error)\n```\nNewCherryPickerForPlatform creates a CherryPicker instance for the specified platform\n\n```go\nfunc (cp *CherryPicker) CherryPickCommit(commitSHA, targetBranch string) error\n```\nCherryPickCommit performs a cherry-pick operation using Git CLI\n\n```go\nfunc (cp *CherryPicker) CherryPickCommits(commits []git.Commit, targetBranch string) error\n```\nCherryPickCommits performs cherry-pick operations for multiple commits using Git CLI\n\n```go\nfunc (cp *CherryPicker) GetCherryPickBranchName(commitSHA, targetBranch string) string\n```\nGetCherryPickBranchName returns the name of the branch that was created for cherry-pick Format: cherry-pick-{PR\\_ID}-to-{target\\_branch}-{short\\_sha}\n\n```go\ntype Platform string\n```\nPlatform represents the Git platform type\n\n```go\nconst (\n\tPlatformGitHub Platform = \"github\"\n\tPlatformGitLab Platform = \"gitlab\"\n)\n```\n\n","path":"github.com/AlaudaDevops/toolbox/pr-cli/pkg/git/cli","name":"cli","synopsis":"","isRedistributable":true}
