Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
IOStreams *iostreams.IOStreams
Config func() (*config.Config, error)
Client func() (*api.Client, error)
Remote func() (*git.Remote, error)
Version string
// contains filtered or unexported fields
}
Factory provides shared dependencies for commands.
func NewFactory ¶
func NewFactory() *Factory
NewFactory creates a Factory with default implementations.
func (*Factory) FullProjectPath ¶
FullProjectPath returns the "owner/repo" path from the current git remote, or from the --repo override if set.
func (*Factory) SetRepoOverride ¶ added in v0.0.9
SetRepoOverride parses a HOST/OWNER/REPO string and stores it.
Click to show internal directories.
Click to hide internal directories.