cmdutil

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 5 Imported by: 0

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)
}

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.

Jump to

Keyboard shortcuts

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