console

package
v0.0.0-...-4ca5139 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplication

func NewApplication() console.Artisan

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

type ServiceProvider

type ServiceProvider struct {
}

func (*ServiceProvider) Boot

func (receiver *ServiceProvider) Boot()

func (*ServiceProvider) Register

func (receiver *ServiceProvider) Register()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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