Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
Config *config.Config
GitRepository *git.Repository
GraphQLClient graphql.Client
RestAPIClient *buildkite.Client
Version string
SkipConfirm bool
NoInput bool
Quiet bool
NoPager bool
Debug bool
}
func New ¶
func New(opts ...FactoryOpt) (*Factory, error)
type FactoryOpt ¶ added in v3.18.0
type FactoryOpt func(*factoryConfig)
FactoryOpt is a functional option for configuring the Factory
func WithDebug ¶ added in v3.18.0
func WithDebug(debug bool) FactoryOpt
WithDebug enables debug output for REST API calls
func WithOrgOverride ¶ added in v3.30.0
func WithOrgOverride(org string) FactoryOpt
WithOrgOverride overrides the configured organization slug for API token resolution. When set, the factory will use the token for this org instead of the currently selected org.
Click to show internal directories.
Click to hide internal directories.