cmd

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	In               io.Reader
	Out              io.Writer
	Args             map[string]string
	ExecutingCommand string
	Commands         []*cobra.Command
}

type Command

type Command struct {
	// contains filtered or unexported fields
}

func StartCommand

func StartCommand[T any](t testing.TB, ctx context.Context, root *cobra.Command, args ...Args) Command

func (Command) Wait

func (c Command) Wait()

type Result

type Result int
const (
	Done Result = iota
	Timeout
)

func StartCommandWithWait

func StartCommandWithWait[T any](t testing.TB, ctx context.Context, root *cobra.Command, wait time.Duration, args ...Args) Result

Jump to

Keyboard shortcuts

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