Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNewCommand ¶
func CreateNewCommand(cmd ICommand) *cli.Command
CreateNewCommand creates a new cli.command from the given ICommand
Types ¶
type ICommand ¶
type ICommand interface { Run(context.Context, *cli.Command) error Name() string Usage() string Description() string Flags() []cli.Flag Arguments() []cli.Argument Command() *cli.Command }
ICommand represents a basic command
type ICommandAfter ¶
ICommandAfter represents a command after action
type ICommandAlias ¶
type ICommandAlias interface {
Alias() string
}
ICommandAlias represents a command alias
type ICommandBefore ¶
ICommandBefore represents a command before action
type ICommandCategory ¶
type ICommandCategory interface {
Category() string
}
ICommandCategory represents a command category
type ICommandSubcommands ¶
type ICommandSubcommands interface {
GetCommands() []ICommand
}
ICommandSubcommands represents a command subcommands
Click to show internal directories.
Click to hide internal directories.