options

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputModePretty = "pretty"
	OutputModeJSON   = "json"
	OutputModeWide   = "wide"
)

Variables

This section is empty.

Functions

func MustSingleImageArgs

func MustSingleImageArgs(args []string) error

Types

type Output

type Output struct {
	// Mode is the output format of the command. Defaults to "pretty".
	Mode string `json:"format"`
}

Output are options for configuring command outputs.

func RegisterOutputs

func RegisterOutputs(cmd *cobra.Command) *Output

func (*Output) Validate

func (o *Output) Validate() error

Jump to

Keyboard shortcuts

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