cmdfactory

package
v0.1.1-16-ged26bc4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: BSD-3-Clause Imports: 11 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 {
	RootCmd        *cobra.Command
	IOStreams      *iostreams.IOStreams
	PluginManager  func() (*plugins.PluginManager, error)
	ConfigManager  func() (*config.ConfigManager, error)
	PackageManager func(opts ...packmanager.PackageManagerOption) (packmanager.PackageManager, error)
	Logger         func() (log.Logger, error)
	HttpClient     func() (*http.Client, error)
}

func New

func New(opts ...FactoryOption) *Factory

New creates a new Factory object

type FactoryOption

type FactoryOption func(*Factory)

func WithPackageManager

func WithPackageManager() FactoryOption

Jump to

Keyboard shortcuts

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