Documentation ¶
Overview ¶
Forked from https://github.com/cli/cli/blob/929e082c13909044e2585af292ae952c9ca6f25c/pkg/cmd/factory/default.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CachedConfig config.Config ConfigError error )
View Source
var SilentError = errors.New("SilentError")
SilentError is an error that triggers exit code 1 without any error messaging
Functions ¶
func EnableRepoOverride ¶
func HTTPClientFactory ¶
func HTTPClientFactory(f *Factory)
func HttpClientFunc ¶
Types ¶
type Factory ¶
type Factory struct { HttpClient func() (*gitlab.Client, error) BaseRepo func() (glrepo.Interface, error) Remotes func() (glrepo.Remotes, error) Config func() (config.Config, error) Branch func() (string, error) IO *utils.IOStreams }
func NewFactory ¶
func NewFactory() *Factory
func (*Factory) RepoOverride ¶
Click to show internal directories.
Click to hide internal directories.