output

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const JsonError = `{"error": "unable to output json from this command"}`

Variables

This section is empty.

Functions

func Error

func Error(err error)

func Print

func Print(output CommandOutput)

Types

type CommandOutput

type CommandOutput interface {
	Human()
	HumanVerbose()
	Json()
}

type String

type String string

func (String) Human

func (s String) Human()

func (String) HumanVerbose

func (s String) HumanVerbose()

func (String) Json

func (s String) Json()

type StringArray

type StringArray []string

func (StringArray) Human

func (p StringArray) Human()

func (StringArray) HumanVerbose

func (p StringArray) HumanVerbose()

func (StringArray) Json

func (p StringArray) Json()

Jump to

Keyboard shortcuts

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