flag

package
v0.0.0-...-a14623b Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Value

type Value struct {
	Completion gomplete.Completion
	FlagName   string

	// Calls to be exit.
	// The default is os.Exit(1).
	Exit func(code int)
}

Value is a implementation for flag.Value.

func (*Value) IsBoolFlag

func (v *Value) IsBoolFlag() bool

IsBoolFlag is a method to meet flag.boolValue.

func (*Value) Set

func (v *Value) Set(name string) error

Set aborts parsing flags and runs the shell completion.

func (*Value) String

func (v *Value) String() string

String returns empty string. This is a dummy function.

Jump to

Keyboard shortcuts

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