Documentation ¶
Index ¶
- func AnalyzeOptions(options Options)
- func ShowHelp(out io.Writer) func(*Context) error
- type Author
- type BoolOption
- type Command
- type Context
- func (context Context) Args() []string
- func (context Context) Bool(name string) bool
- func (context Context) BoolOr(name string, value bool) bool
- func (context Context) BoolOrInput(name string) (bool, error)
- func (context Context) BoolOrPassword(name string) (bool, error)
- func (context Context) Float32(name string) float32
- func (context Context) Float32Or(name string, value float32) float32
- func (context Context) Float32OrInput(name string) (float32, error)
- func (context Context) Float32OrPassword(name string) (float32, error)
- func (context Context) Float64(name string) float64
- func (context Context) Float64Or(name string, value float64) float64
- func (context Context) Float64OrInput(name string) (float64, error)
- func (context Context) Float64OrPassword(name string) (float64, error)
- func (context Context) Int(name string) int
- func (context Context) Int32(name string) int32
- func (context Context) Int32Or(name string, value int32) int32
- func (context Context) Int32OrInput(name string) (int32, error)
- func (context Context) Int32OrPassword(name string) (int32, error)
- func (context Context) Int64(name string) int64
- func (context Context) Int64Or(name string, value int64) int64
- func (context Context) Int64OrInput(name string) (int64, error)
- func (context Context) Int64OrPassword(name string) (int64, error)
- func (context Context) IntOr(name string, value int) int
- func (context Context) IntOrInput(name string) (int, error)
- func (context Context) IntOrPassword(name string) (int, error)
- func (context Context) IsSet(name string) bool
- func (context *Context) ShowHelp(out io.Writer) error
- func (context Context) String(name string) string
- func (context Context) StringOr(name string, value string) string
- func (context Context) StringOrInput(name string) (string, error)
- func (context Context) StringOrPassword(name string) (string, error)
- type Float32Option
- type Float64Option
- type Int32Option
- type Int64Option
- type IntOption
- type Option
- type Options
- type StringOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnalyzeOptions ¶
func AnalyzeOptions(options Options)
Types ¶
type BoolOption ¶
func (*BoolOption) Apply ¶
func (option *BoolOption) Apply(options map[string]interface{}, args ...string) (int, error)
func (*BoolOption) Help ¶
func (option *BoolOption) Help() [2]string
func (*BoolOption) Keywords ¶
func (option *BoolOption) Keywords() []string
func (*BoolOption) SetDefaultValue ¶
func (option *BoolOption) SetDefaultValue(options map[string]interface{})
type Command ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (Context) Float32OrPassword ¶
func (Context) Float64OrPassword ¶
type Float32Option ¶
type Float32Option struct { Name string Short string DefaultValue float32 Description string Usage string ArgUsage string }
func (*Float32Option) Apply ¶
func (option *Float32Option) Apply(options map[string]interface{}, args ...string) (int, error)
func (*Float32Option) Help ¶
func (option *Float32Option) Help() [2]string
func (*Float32Option) Keywords ¶
func (option *Float32Option) Keywords() []string
func (*Float32Option) SetDefaultValue ¶
func (option *Float32Option) SetDefaultValue(options map[string]interface{})
type Float64Option ¶
type Float64Option struct { Name string Short string DefaultValue float64 Description string Usage string ArgUsage string }
func (*Float64Option) Apply ¶
func (option *Float64Option) Apply(options map[string]interface{}, args ...string) (int, error)
func (*Float64Option) Help ¶
func (option *Float64Option) Help() [2]string
func (*Float64Option) Keywords ¶
func (option *Float64Option) Keywords() []string
func (*Float64Option) SetDefaultValue ¶
func (option *Float64Option) SetDefaultValue(options map[string]interface{})
type Int32Option ¶
type Int32Option struct { Name string Short string DefaultValue int32 Description string Usage string ArgUsage string }
func (*Int32Option) Apply ¶
func (option *Int32Option) Apply(options map[string]interface{}, args ...string) (int, error)
func (*Int32Option) Help ¶
func (option *Int32Option) Help() [2]string
func (*Int32Option) Keywords ¶
func (option *Int32Option) Keywords() []string
func (*Int32Option) SetDefaultValue ¶
func (option *Int32Option) SetDefaultValue(options map[string]interface{})
type Int64Option ¶
type Int64Option struct { Name string Short string DefaultValue int64 Description string Usage string ArgUsage string }
func (*Int64Option) Apply ¶
func (option *Int64Option) Apply(options map[string]interface{}, args ...string) (int, error)
func (*Int64Option) Help ¶
func (option *Int64Option) Help() [2]string
func (*Int64Option) Keywords ¶
func (option *Int64Option) Keywords() []string
func (*Int64Option) SetDefaultValue ¶
func (option *Int64Option) SetDefaultValue(options map[string]interface{})
type IntOption ¶
type IntOption struct { Name string Short string DefaultValue int Description string Usage string ArgUsage string }
func (*IntOption) SetDefaultValue ¶
type StringOption ¶
type StringOption struct { Name string Short string DefaultValue string Description string Usage string ArgUsage string }
func (*StringOption) Apply ¶
func (option *StringOption) Apply(options map[string]interface{}, args ...string) (int, error)
func (*StringOption) Help ¶
func (option *StringOption) Help() [2]string
func (*StringOption) Keywords ¶
func (option *StringOption) Keywords() []string
func (*StringOption) SetDefaultValue ¶
func (option *StringOption) SetDefaultValue(options map[string]interface{})
Click to show internal directories.
Click to hide internal directories.