Versions in this module Expand all Collapse all v0 v0.2.0 Dec 9, 2023 Changes in this version + var ErrInvalidType = errors.New("invlaid type") + var ErrNotACommand = errors.New("not a command") + func BindCobra(name string, root any) (*cobra.Command, error) + func MustBindCobra(name string, root any) *cobra.Command + type CobraCommand interface + Run func(cmd *cobra.Command, args []string) + type ShortHelper interface + ShortHelp func() string + type SimpleCommand interface + Run func() v0.1.0 Sep 24, 2020 Changes in this version + var ErrWrongType = errors.New("wrong type") + func Run(name string, opts ...Option) + type Command interface + Run func([]string) + type Defaulter interface + Default func() + type Func func([]string) + func (f Func) Run(args []string) + func (f Func) WithHelp(help string) Command + type Group interface + SubCommands func() Map + type Helper interface + Help func() string + type Map map[string]Unit + func (m Map) SubCommands() Map + func (m Map) WithHelp(help string) Group + type Option func(*options) + func WithArgs(args []string) Option + func WithCommand(c Command) Option + func WithGroup(g Group) Option + type Parser interface + Parse func(string) error + type Unit interface + type Validator interface + Validate func() error