MCPcopy
hub / github.com/livebud/bud / Subcommand

Struct Subcommand

package/commander/subcommand.go:23–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23type Subcommand struct {
24 config *config
25 fset *flag.FlagSet
26 run func(ctx context.Context) error
27 parsed bool
28
29 // state for the template
30 name string
31 usage string
32 commands map[string]*Subcommand
33 flags []*Flag
34 args []*Arg
35 restArgs *Args // optional, collects the rest of the args
36}
37
38var _ Command = (*Subcommand)(nil)
39

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected