pcli

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2016 License: Apache-2.0 Imports: 5 Imported by: 33

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolFlagToCli

func BoolFlagToCli(s Flag) interface{}

func BoolTFlagToCli

func BoolTFlagToCli(s Flag) interface{}

func IntFlagToCli

func IntFlagToCli(s Flag) interface{}

func StringFlagToCli

func StringFlagToCli(s Flag) interface{}

func StringSliceFlagToCli

func StringSliceFlagToCli(s Flag) interface{}

Types

type Flag

type Flag struct {
	Name     string
	Usage    string
	EnvVar   string
	Value    string
	FlagType FlagType
}

func (Flag) ToCli

func (s Flag) ToCli() interface{}

type FlagType

type FlagType int
const (
	StringFlag FlagType = iota
	StringSliceFlag
	BoolFlag
	IntFlag
	BoolTFlag
)

Jump to

Keyboard shortcuts

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