Documentation ¶
Index ¶
- func ExecuteCommand(root *cobra.Command, args ...string) (string, error)
- func ExecuteCommandC(c *cobra.Command, args ...string) (*cobra.Command, string, error)
- func NewTestIOStreams() (*cli.IOStreams, *bytes.Buffer, *bytes.Buffer, *bytes.Buffer)
- func TestCommand(t *testing.T, cCmd *cobra.Command, outBuf *bytes.Buffer, ...)
- func TestOutput(t *testing.T, commandName string, outBuf *bytes.Buffer, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteCommand ¶
ExecuteCommand executes the root command passing the args and returns the output as a string and error
func ExecuteCommandC ¶
ExecuteCommandC executes the root command passing the args and returns the root command, output as a string and error if any
func NewTestIOStreams ¶
func TestCommand ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.