Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandBuilder ¶
type CommandBuilder[T any] struct { // contains filtered or unexported fields }
func NewBuilder ¶
func NewBuilder[T any](name, usage string, defaultConfig T, options ...CommandOption) *CommandBuilder[T]
func (*CommandBuilder[T]) AddHandlers ¶
func (cb *CommandBuilder[T]) AddHandlers(h ...CommandHandler[T]) *CommandBuilder[T]
func (*CommandBuilder[T]) Build ¶
func (cb *CommandBuilder[T]) Build() *cli.Command
type CommandHandler ¶
type CommandOption ¶
type CommandOption interface {
// contains filtered or unexported methods
}
func WithAlias ¶
func WithAlias(alias []string) CommandOption
func WithFlags ¶
func WithFlags(flags cli.Flag) CommandOption
type InlineHandler ¶
func (InlineHandler[T]) Handle ¶
func (s InlineHandler[T]) Handle(c *cli.Context, cfg T) error
Click to show internal directories.
Click to hide internal directories.