testutil

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandIO

func CommandIO(cmd *cobra.Command) *terminal.IO

CommandIO returns IO for testing with the given command already configured to use the IO.

func SetupCmd

func SetupCmd(cmd *cobra.Command)

SetupCmd applies default completion and the test IO to a command. The completion defaults are applied recursively to all commands.

Types

This section is empty.

Jump to

Keyboard shortcuts

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