cmd

package
v0.0.0-...-d5b5c0c Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type MatchAny

type MatchAny struct{}

func (MatchAny) Match

func (MatchAny) Match(string) bool

type Regexp

type Regexp struct{ *regexp.Regexp }

func (Regexp) Match

func (r Regexp) Match(it string) bool

func (*Regexp) Set

func (r *Regexp) Set(from string) (err error)

func (Regexp) String

func (r Regexp) String() string

func (Regexp) Type

func (r Regexp) Type() string

type Value

type Value interface {
	String() string
	Set(string) error
	Type() string
}

Value is the interface to the dynamic value stored in a flag. (The default value is represented as a string.)

Jump to

Keyboard shortcuts

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