flag

package
v0.39.0-alpha-1-no-mas... Latest Latest
Warning

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

Go to latest
Published: Nov 24, 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(flags ...string) error

func ValidateOutput

func ValidateOutput(v string) error

ValidateOutput 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