Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artisan ¶
type Artisan interface {
//Register commands.
Register(commands []Command)
//Call Run an Artisan console command by name.
Call(command string)
//CallAndExit Run an Artisan console command by name and exit.
CallAndExit(command string)
//Run a command. args include: ["./main", "artisan", "command"]
Run(args []string, exitIfArtisan bool)
}
type CommandExtend ¶ added in v0.4.1
type CommandExtend struct {
//Category Set command category
Category string
//Flags Set flags, document: https://github.com/urfave/cli/blob/master/docs/v2/manual.md#flags
Flags []cli.Flag
//Subcommands Set Subcommands, document: https://github.com/urfave/cli/blob/master/docs/v2/manual.md#subcommands
Subcommands []*cli.Command
}
Click to show internal directories.
Click to hide internal directories.