Versions in this module Expand all Collapse all v0 v0.0.1 Jun 9, 2026 Changes in this version + func AddCommand(path string, cmd func(), brief string) + func AddConfig(path string, unmarshaler Unmarshaler) + func AddRootCommand(cmd func()) + func Alias(name, definition string) + func Args() []string + func Description(text string) + func Launch() + func Parse(v interface{}, opts ...ParseOption) + func Title(text string) + func Usage() + func Use(opts ...Option) + type Command struct + Alias bool + Brief string + Path string + Proc func() + func Commands() []*Command + type Cortana struct + func New(opts ...Option) *Cortana + func (c *Cortana) AddCommand(path string, cmd func(), brief string) + func (c *Cortana) AddConfig(path string, unmarshaler Unmarshaler) + func (c *Cortana) AddEnvUnmarshaler(unmarshaler EnvUnmarshaler) + func (c *Cortana) AddRootCommand(cmd func()) + func (c *Cortana) Alias(name, definition string) + func (c *Cortana) Args() []string + func (c *Cortana) Commands() []*Command + func (c *Cortana) Description(text string) + func (c *Cortana) Launch() + func (c *Cortana) Parse(v interface{}, opts ...ParseOption) + func (c *Cortana) Title(text string) + func (c *Cortana) Usage() + func (c *Cortana) Use(opts ...Option) + type EnvUnmarshalFunc func(v interface{}) error + func (f EnvUnmarshalFunc) Unmarshal(v interface{}) error + type EnvUnmarshaler interface + Unmarshal func(v interface{}) error + type Option func(flags *predefined) + func ConfFlag(long, short string, unmarshaler Unmarshaler) Option + func DisableHelpFlag() Option + func HelpFlag(long, short string) Option + type ParseOption func(opt *parseOption) + func IgnoreUnknownArgs() ParseOption + func WithArgs(args []string) ParseOption + type UnmarshalFunc func(data []byte, v interface{}) error + func (f UnmarshalFunc) Unmarshal(data []byte, v interface{}) error + type Unmarshaler interface + Unmarshal func(data []byte, v interface{}) error