flag

package
v0.26.0-alpha5 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequiredWhenNonInteractiveError

func RequiredWhenNonInteractiveError(arg string) error

func ValidateOutput

func ValidateOutput(v string) error

ValidOutput checks if value v is a valid value for --output

Types

type Error

type Error struct {
	Err error
}

func InvalidValueError

func InvalidValueError(flag string, val interface{}, validOptions ...string) *Error

InvalidValueError returns an error when an invalid flag value is provided

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

Jump to

Keyboard shortcuts

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