cmd

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockHelper

type MockHelper struct {
	GetCmdMock          func() *cobra.Command
	GetArgsMock         func() []string
	GetVerbMock         func() (verbs.VerbValue, error)
	GetProductMock      func() (products.ProductValue, error)
	GetStreamsMock      func() *iostreams.IOStreams
	GetConfigMock       func() (config.Hook, error)
	GetOutputFormatMock func() (common.OutputFormat, error)
	GetLoggerMock       func() (*slog.Logger, error)
	GetBuildInfoMock    func() (*build.Info, error)
	GetContextMock      func() context.Context
	GetKonnectSDKMock   func(config.Hook, *slog.Logger) (helpers.SDKAPI, error)
}

func (*MockHelper) GetArgs

func (m *MockHelper) GetArgs() []string

func (*MockHelper) GetBuildInfo

func (m *MockHelper) GetBuildInfo() (*build.Info, error)

func (*MockHelper) GetCmd

func (m *MockHelper) GetCmd() *cobra.Command

func (*MockHelper) GetConfig

func (m *MockHelper) GetConfig() (config.Hook, error)

func (*MockHelper) GetContext

func (m *MockHelper) GetContext() context.Context

func (*MockHelper) GetKonnectSDK added in v0.0.13

func (m *MockHelper) GetKonnectSDK(cfg config.Hook, logger *slog.Logger) (helpers.SDKAPI, error)

func (*MockHelper) GetLogger

func (m *MockHelper) GetLogger() (*slog.Logger, error)

func (*MockHelper) GetOutputFormat

func (m *MockHelper) GetOutputFormat() (common.OutputFormat, error)

func (*MockHelper) GetProduct

func (m *MockHelper) GetProduct() (products.ProductValue, error)

func (*MockHelper) GetStreams

func (m *MockHelper) GetStreams() *iostreams.IOStreams

func (*MockHelper) GetVerb

func (m *MockHelper) GetVerb() (verbs.VerbValue, error)

Jump to

Keyboard shortcuts

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