cobrautils

package
v0.0.0-...-9947234 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCmd

func ExecuteCmd(ctx context.Context, rootCmd *cobra.Command, line string, in io.Reader, stdout io.Writer, stderr io.Writer) error

ExecuteCmd executes a command and captures the output

func InitRootCmd

func InitRootCmd(rootCmd *cobra.Command)

InitRootCmd sets up the root command for the shell and calls some of the same functions that would run behind the scenes for `rootCmd.Execute()`.

These are needed to do stuff like add the internal autocomplete command

Types

This section is empty.

Jump to

Keyboard shortcuts

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