cmd

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: MIT, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Verbose enables verbosity mode (container specific).
	Verbose bool

	// Debug enables debug mode (service specific).
	Debug bool

	// Logger - shared logger.
	Logger = logrus.New()

	// Container - shared service bus.
	Container = service.NewContainer(Logger)

	// CLI is application endpoint.
	CLI = &cobra.Command{
		Use:           "rr",
		SilenceErrors: true,
		SilenceUsage:  true,
		Short: util.Sprintf(
			"<green>RoadRunner</reset>, PHP Application Server\nVersion: <yellow+hb>%s</reset>, %s",
			Version,
			BuildTime,
		),
	}
)

Services bus for all the commands.

View Source
var (
	// Version - defines build version.
	Version = "local"

	// BuildTime - defined build time.
	BuildTime = "development"
)

Functions

func Execute

func Execute()

Execute adds all child commands to the CLI command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the CLI.

Types

This section is empty.

Jump to

Keyboard shortcuts

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