Versions in this module Expand all Collapse all v0 v0.1.0 Nov 19, 2022 Changes in this version + func IsTerm(f interface{}) bool + type Cmd struct + Args Opts + Commands []*Cmd + Env Opts + Name string + Opts Opts + Run func(Ctx) error + Version string + type CmdHelp struct + Articles fs.FS + Select HelpSelector + type Commander interface + Execute func(root *Cmd, ctx Ctx) error + Optioner func() Optioner + ResolveCmd func(root *Cmd, ctx Ctx) Ctx + type Ctx struct + Args []string + Com Commander + Err io.Writer + In io.Reader + Out io.Writer + Path Pth + Printer *message.Printer + Strings map[string]string + Values map[string]any + func OSContext(args ...string) Ctx + type HelpSelector func(*Cmd, HelpSubject, Helper, string) (accept, recurse bool) + type HelpSubject struct + Cmd *Cmd + Ctx *Ctx + Opt *O + type Helper interface + Help func(HelpSubject) string + type O struct + Name string + Parse func(string) (any, error) + Predict complete.Predictor + Require bool + Type reflect.Type + func (o O) WithName(name string) O + type Opt O + func (o Opt[T]) Get(c Ctx) (val T, err error) + func (o Opt[T]) Getp(c Ctx) (val *T, err error) + func (o Opt[T]) Opt() O + type Opter interface + Opt func() O + type Optioner interface + CompleteOptions func(completion.Context, ...Opter) []string + ExtractOptions func(Ctx, ...Opter) (Ctx, error) + type Opts []Opter + type Pth []*Cmd + type ReqOpt O + func (o ReqOpt[T]) Get(c Ctx) (val T) + func (o ReqOpt[T]) Getp(c Ctx) (val *T) + func (o ReqOpt[T]) Opt() O