console

package
v1.1.22 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCli

func NewCli(name ...string) console.Artisan

Types

type Application

type Application struct {
	Name string
}

func (*Application) Init

func (app *Application) Init() console.Artisan

type Cli

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

func (*Cli) Call

func (c *Cli) Call(command string)

Call Run an Artisan console command by name.

func (*Cli) CallAndExit

func (c *Cli) CallAndExit(command string)

CallAndExit Run an Artisan console command by name and exit.

func (*Cli) Register

func (c *Cli) Register(commands []console.Command)

func (*Cli) Run

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

Run a command. Args come from os.Args.

func (*Cli) Unregister

func (c *Cli) Unregister(command string)

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 {
	Name string
}

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