Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v0.48.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 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