Documentation
¶
Index ¶
Constants ¶
View Source
const ( CommandTypeScript = "script" CommandTypeInlinedPack = "inlined_pack" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command interface {
Execute(ctx context.Context, app *application.Application, props *Properties)
}
type CommandEntity ¶
type CommandEntity struct {
Command Command
Properties *Properties
}
func NewEntity ¶
func NewEntity(properties *Properties, command Command) *CommandEntity
type Properties ¶
type Properties struct {
Name string
Description string
Alias string
Environment map[string]string
}
func NewProperties ¶
Click to show internal directories.
Click to hide internal directories.