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
}
func (*Factory) SetGlobalFlags ¶ added in v3.14.2
SetGlobalFlags reads the global persistent flags and sets them on the factory. This should be called in PreRunE of Cobra commands that need to use global flags. It's safe to call multiple times and will only set flags if they're present.
NOTE: This is only used by legacy Cobra commands. Kong commands receive global flags via cli.GlobalFlags which are set at the root level and work in any position (e.g., bk --yes job cancel <id>).
Click to show internal directories.
Click to hide internal directories.