cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: MIT, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// 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:         utils.Sprintf("<green>RoadRunner, PHP Application Server.</reset>"),
	}
)

Service bus for all the commands.

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

type ViperWrapper

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

ViperWrapper provides interface bridge between v configs and service.Config.

func (*ViperWrapper) Get

func (w *ViperWrapper) Get(key string) service.Config

Get nested config section (sub-map), returns nil if section not found.

func (*ViperWrapper) Unmarshal

func (w *ViperWrapper) Unmarshal(out interface{}) error

Unmarshal unmarshal config data into given struct.

Jump to

Keyboard shortcuts

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