options

package
Version: v0.0.0-...-535a33e Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

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