Documentation ¶
Index ¶
- Constants
- func NewApplication() console.Artisan
- type Application
- type CliContext
- func (r *CliContext) Argument(index int) string
- func (r *CliContext) Arguments() []string
- func (r *CliContext) Option(key string) string
- func (r *CliContext) OptionBool(key string) bool
- func (r *CliContext) OptionFloat64(key string) float64
- func (r *CliContext) OptionFloat64Slice(key string) []float64
- func (r *CliContext) OptionInt(key string) int
- func (r *CliContext) OptionInt64(key string) int64
- func (r *CliContext) OptionInt64Slice(key string) []int64
- func (r *CliContext) OptionIntSlice(key string) []int
- func (r *CliContext) OptionSlice(key string) []string
- type ServiceProvider
Constants ¶
View Source
const Binding = "goravel.console"
Variables ¶
This section is empty.
Functions ¶
func NewApplication ¶
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func (*Application) Call ¶
func (c *Application) Call(command string)
Call Run an Artisan console command by name.
func (*Application) CallAndExit ¶
func (c *Application) CallAndExit(command string)
CallAndExit Run an Artisan console command by name and exit.
func (*Application) Register ¶
func (c *Application) Register(commands []console.Command)
func (*Application) Run ¶
func (c *Application) Run(args []string, exitIfArtisan bool)
Run a command. Args come from os.Args.
type CliContext ¶
type CliContext struct {
// contains filtered or unexported fields
}
func (*CliContext) Argument ¶
func (r *CliContext) Argument(index int) string
func (*CliContext) Arguments ¶
func (r *CliContext) Arguments() []string
func (*CliContext) Option ¶
func (r *CliContext) Option(key string) string
func (*CliContext) OptionBool ¶
func (r *CliContext) OptionBool(key string) bool
func (*CliContext) OptionFloat64 ¶
func (r *CliContext) OptionFloat64(key string) float64
func (*CliContext) OptionFloat64Slice ¶
func (r *CliContext) OptionFloat64Slice(key string) []float64
func (*CliContext) OptionInt ¶
func (r *CliContext) OptionInt(key string) int
func (*CliContext) OptionInt64 ¶
func (r *CliContext) OptionInt64(key string) int64
func (*CliContext) OptionInt64Slice ¶
func (r *CliContext) OptionInt64Slice(key string) []int64
func (*CliContext) OptionIntSlice ¶
func (r *CliContext) OptionIntSlice(key string) []int
func (*CliContext) OptionSlice ¶
func (r *CliContext) OptionSlice(key string) []string
type ServiceProvider ¶
type ServiceProvider struct { }
func (*ServiceProvider) Boot ¶
func (receiver *ServiceProvider) Boot(app foundation.Application)
func (*ServiceProvider) Register ¶
func (receiver *ServiceProvider) Register(app foundation.Application)
Click to show internal directories.
Click to hide internal directories.