Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandBuilder ¶
type CommandBuilder[T any] struct { // contains filtered or unexported fields }
func NewCommand ¶
func NewCommand[T any](name, usage string, defaultConfig T, options ...commandOption) *CommandBuilder[T]
func (*CommandBuilder[T]) AddHandler ¶
func (cb *CommandBuilder[T]) AddHandler(h CommandHandler[T]) *CommandBuilder[T]
AddHandler add command handler
func (*CommandBuilder[T]) Create ¶
func (cb *CommandBuilder[T]) Create() *cli.Command
Create construct command and output as cli.Command
Click to show internal directories.
Click to hide internal directories.