Documentation ¶
Index ¶
- func Bool(name string) bool
- func BoolE(name string) (val bool, err error)
- func Float32(name string) float32
- func Float32E(name string) (val float32, err error)
- func Float64(name string) float64
- func Float64E(name string) (val float64, err error)
- func Int(name string) int
- func IntE(name string) (val int, err error)
- func NBool(nodeName, name string) bool
- func NBoolE(nodeName, name string) (bool, error)
- func NFloat32(nodeName, name string) float32
- func NFloat32E(nodeName, name string) (float32, error)
- func NFloat64(nodeName, name string) float64
- func NFloat64E(nodeName, name string) (float64, error)
- func NInt(nodeName, name string) int
- func NIntE(nodeName, name string) (int, error)
- func NString(nodeName, name string) string
- func NStringE(nodeName, name string) (string, error)
- func NStringSlice(nodeName, name string) []string
- func NStringSliceE(nodeName, name string) ([]string, error)
- func NTimeDuration(nodeName, name string) time.Duration
- func NTimeDurationE(nodeName, name string) (time.Duration, error)
- func NewRootCommand(c *CommandNode)
- func Parse() error
- func Register(fs ...CommandNode)
- func RegisterSpecify(cnd *CommandNode, fs ...CommandNode)
- func String(name string) string
- func StringE(name string) (val string, err error)
- func StringSlice(name string) []string
- func StringSliceE(name string) (val []string, err error)
- func TimeDuration(name string) time.Duration
- func TimeDurationE(name string) (val time.Duration, err error)
- type Command
- type CommandNode
- type FlagRegisterFun
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NStringSlice ¶
func NStringSliceE ¶
func NTimeDuration ¶
func NewRootCommand ¶
func NewRootCommand(c *CommandNode)
func Register ¶
func Register(fs ...CommandNode)
func RegisterSpecify ¶ added in v1.0.3
func RegisterSpecify(cnd *CommandNode, fs ...CommandNode)
func StringSlice ¶
func StringSliceE ¶
func TimeDuration ¶
Types ¶
type CommandNode ¶
type CommandNode struct { Name string Command *Command Flags FlagRegisterFun }
type FlagRegisterFun ¶
type FlagRegisterFun func(*Command)
Click to show internal directories.
Click to hide internal directories.