Documentation ¶ Index ¶ type Args type Command func StartCommand[T any](t testing.TB, ctx context.Context, root *cobra.Command, args ...Args) Command func (c Command) Wait() type Result func StartCommandWithWait[T any](t testing.TB, ctx context.Context, root *cobra.Command, wait time.Duration, ...) Result 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 Source Files ¶ View all Source files cmd.go Click to show internal directories. Click to hide internal directories.