cmdutil

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func (f *Factory) FullProjectPath() (string, error)

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

func (f *Factory) SetRepoOverride(repo string)

SetRepoOverride parses a HOST/OWNER/REPO string and stores it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL