output

package
v1.2.45-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JSON           = "json"
	YAML           = "yaml"
	FLAG_NAME      = "output"
	FLAG_SHORTHAND = "o"
)
View Source
const (
	Yes        = "Yes"
	No         = "No"
	EmptySlice = ""
)

Variables

This section is empty.

Functions

func AddFlag

func AddFlag(cmd *cobra.Command)

AddFlag adds the interactive flag to the given set of command line flags.

func HasFlag

func HasFlag() bool

func Output

func Output() string

Enabled retursn a boolean flag that indicates if the interactive mode is enabled.

func Print

func Print(resource interface{}) error

func PrintBool added in v1.2.38

func PrintBool(b bool) string

PrintBool returns a prettified version of a boolean. "Yes" for true, or "No" for false

func PrintStringSlice added in v1.2.38

func PrintStringSlice(in []string) string

func SetOutput added in v1.2.38

func SetOutput(output string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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