cmdutil

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package cmdutil provides utilities for command implementation

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
	HttpClient func() (*http.Client, error)
	Config     func() (config.Config, error)
	Branch     func() (string, error)
}

Factory provides dependencies for commands

func NewFactory

func NewFactory() *Factory

NewFactory creates a new Factory with default settings

func TestFactory

func TestFactory() *Factory

TestFactory creates a Factory for testing

Source Files

  • factory.go

Jump to

Keyboard shortcuts

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