Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrSilent mirrors gh's sentinel used to suppress error printing. ErrSilent = errors.New("silent") )
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
AppVersion string
ExecutableName string
IOStreams *iostreams.IOStreams
Config func() (*config.Config, error)
JenkinsClient func(context.Context, string, ...jenkins.ClientOption) (*jenkins.Client, error)
// contains filtered or unexported fields
}
Factory wires together shared services used by Cobra commands. It mirrors the GitHub CLI structure but swaps in Jenkins aware components.
func (*Factory) Client ¶
func (f *Factory) Client(ctx context.Context, contextName string, opts ...jenkins.ClientOption) (*jenkins.Client, error)
Client returns a Jenkins client for the requested context.
func (*Factory) ResolveConfig ¶
ResolveConfig eagerly loads the CLI configuration, caching the result.
Click to show internal directories.
Click to hide internal directories.