Documentation ¶ Index ¶ func NewArgParser(logger log.TraceLogger, usageString string) *argParser func NewSubcommand(name string, description string, runFunc func(context.Context, []string) error) *genericSubcommand type Subcommand Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewArgParser ¶ func NewArgParser(logger log.TraceLogger, usageString string) *argParser func NewSubcommand ¶ func NewSubcommand( name string, description string, runFunc func(context.Context, []string) error, ) *genericSubcommand Types ¶ type Subcommand ¶ type Subcommand interface { Name() string Description() string Run(ctx context.Context, args []string) error } Source Files ¶ View all Source files argparse.go subcommand.go Click to show internal directories. Click to hide internal directories.