Documentation ¶ Index ¶ type Arg type Args func (a Args) Last() *Arg type Flag type Node type Nodes type Root func (t *Root) RunCompletion(ctx context.Context, r *readline.Readline) []prompt.Suggest func (t *Root) RunExecution(ctx context.Context, r *readline.Readline) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Arg ¶ type Arg struct { Name string Repeat bool Optional bool Suggest func(ctx context.Context, t *Root, r *readline.Readline) []prompt.Suggest } type Args ¶ type Args []*Arg func (Args) Last ¶ func (a Args) Last() *Arg type Flag ¶ type Flag struct { Name string Required bool Value interface{} } type Node ¶ type Node struct { Name string Names func() []string Args Args Flags func(fs *readline.FlagSet) PassThroughArgs Args PassThroughFlags func(fs *readline.FlagSet) Description string Nodes []*Node Execute func(ctx context.Context, r *readline.Readline) error } type Nodes ¶ type Nodes []*Node type Root ¶ type Root struct { Name string Description string Node *Node Nodes Nodes } func (*Root) RunCompletion ¶ added in v0.1.6 func (t *Root) RunCompletion(ctx context.Context, r *readline.Readline) []prompt.Suggest func (*Root) RunExecution ¶ added in v0.1.6 func (t *Root) RunExecution(ctx context.Context, r *readline.Readline) error Source Files ¶ View all Source files arg.go args.go flag.go node.go nodes.go root.go Click to show internal directories. Click to hide internal directories.