Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBarArgs

func AddBarArgs(cmd *cobra.Command, o *BarOptions)

func AddOutputArg

func AddOutputArg(cmd *cobra.Command, po *OutputOptions)

func Wrap

func Wrap(text string, width int) string

func Wrap80

func Wrap80(text string) string

Types

type BarOptions

type BarOptions struct {
	Message string
	Name    string
}

BarOptions

type OutputOptions

type OutputOptions struct {
	JSON bool
}

OutputOptions

func (*OutputOptions) HandleError

func (o *OutputOptions) HandleError(err error) error