Documentation
¶
Index ¶
- func New(runtime shared.Runtime, deps Dependencies) *cobra.Command
- func NewBatch(runtime shared.Runtime, deps IntegrationDependencies) *cobra.Command
- func NewCreate(runtime shared.Runtime, deps Dependencies) *cobra.Command
- func NewIntegration(runtime shared.Runtime, deps IntegrationDependencies) *cobra.Command
- func NewLand(runtime shared.Runtime, deps Dependencies) *cobra.Command
- func NewUpdate(runtime shared.Runtime, deps Dependencies) *cobra.Command
- type Dependencies
- type IntegrationDependencies
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBatch ¶
func NewBatch(runtime shared.Runtime, deps IntegrationDependencies) *cobra.Command
NewBatch constructs `wb pr batch` and its verbs.
func NewIntegration ¶
func NewIntegration(runtime shared.Runtime, deps IntegrationDependencies) *cobra.Command
NewIntegration constructs `wb integration` and its verbs.
Types ¶
type Dependencies ¶
type Dependencies struct {
Create func(context.Context, orchestrate.PullRequestCreateOptions) (orchestrate.PullRequestCreateResult, error)
Update func(context.Context, orchestrate.PullRequestUpdateOptions) (orchestrate.PullRequestUpdateResult, error)
Land func(context.Context, orchestrate.PullRequestLandOptions) (orchestrate.PullRequestLandResult, error)
CheckRepository func(string, string) error
Events func(string, string) (streams.EventAppender, string)
Lane func(string, string, string, bool) orchestrate.LaneGuardRequest
CheckoutUpdated func(io.Writer) func(context.Context, orchestrate.CheckoutUpdate)
SuggestCloses func(context.Context, string, string) []int
Interactive func(io.Writer, bool) bool
IsTerminal func(io.Writer) bool
Integration IntegrationDependencies
}
type IntegrationDependencies ¶
type IntegrationDependencies struct {
Add func(context.Context, orchestrate.IntegrationOptions) (orchestrate.IntegrationResult, error)
Merge func(context.Context, orchestrate.IntegrationOptions) (orchestrate.IntegrationResult, error)
}
IntegrationDependencies are the integration verbs' orchestration entry points.
func DefaultIntegrationDependencies ¶
func DefaultIntegrationDependencies() IntegrationDependencies
DefaultIntegrationDependencies wires the production verbs.