cli

package
v0.24.6 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCommand

func ExecuteCommand(root *cobra.Command, args ...string) (string, error)

ExecuteCommand executes the root command passing the args and returns the output as a string and error.

func ExecuteCommandC

func ExecuteCommandC(c *cobra.Command, args ...string) (*cobra.Command, string, error)

ExecuteCommandC executes the root command passing the args and returns the root command, output as a string and error if any.

func NewIOStream

func NewIOStream() (*cli.IOStreams, *bytes.Buffer)

NewIOStream return a fake iostreams.

Types

This section is empty.

Jump to

Keyboard shortcuts

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