testingcli

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestProvider

type TestProvider struct {
	ContextFn func() (context.Context, context.CancelFunc)

	LoggerFn func() *log.Logger
}

TestProvider implements cli.Provider for testing usage.

func New

func New(ms ...func(*TestProvider)) *TestProvider

New creates a testing cli provider with optional mutate functions.

func (*TestProvider) Context

func (tp *TestProvider) Context() (context.Context, context.CancelFunc)

func (*TestProvider) Logger

func (tp *TestProvider) Logger() *log.Logger

Jump to

Keyboard shortcuts

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