console

package
v1.13.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 9 Imported by: 10

Documentation

Index

Constants

View Source
const Binding = "goravel.console"

Variables

This section is empty.

Functions

func NewApplication added in v1.8.1

func NewApplication() console.Artisan

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

func (*Application) Call added in v0.1.0

func (c *Application) Call(command string)

Call Run an Artisan console command by name.

func (*Application) CallAndExit added in v0.4.1

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 added in v0.1.2

func (c *Application) Run(args []string, exitIfArtisan bool)

Run a command. Args come from os.Args.

type CliContext added in v1.0.0

type CliContext struct {
	// contains filtered or unexported fields
}

func (*CliContext) Argument added in v1.0.0

func (r *CliContext) Argument(index int) string

func (*CliContext) Arguments added in v1.0.0

func (r *CliContext) Arguments() []string

func (*CliContext) Option added in v1.0.0

func (r *CliContext) Option(key string) string

func (*CliContext) OptionBool added in v1.12.0

func (r *CliContext) OptionBool(key string) bool

func (*CliContext) OptionFloat64 added in v1.12.0

func (r *CliContext) OptionFloat64(key string) float64

func (*CliContext) OptionFloat64Slice added in v1.12.0

func (r *CliContext) OptionFloat64Slice(key string) []float64

func (*CliContext) OptionInt added in v1.12.0

func (r *CliContext) OptionInt(key string) int

func (*CliContext) OptionInt64 added in v1.12.0

func (r *CliContext) OptionInt64(key string) int64

func (*CliContext) OptionInt64Slice added in v1.12.0

func (r *CliContext) OptionInt64Slice(key string) []int64

func (*CliContext) OptionIntSlice added in v1.12.0

func (r *CliContext) OptionIntSlice(key string) []int

func (*CliContext) OptionSlice added in v1.12.0

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL