config

package
v0.3.0-beta Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigPath string

Functions

func GetAfterFunc

func GetAfterFunc() func(c *cli.Context) error

func GetBeforeFunc

func GetBeforeFunc() func(c *cli.Context) error

func GetEnvForCommand

func GetEnvForCommand(c *cli.Context) []string

func ParseGlobalConfig

func ParseGlobalConfig()

func UseGoRun

func UseGoRun() bool

Types

type Config

type Config struct {
	// Global Configuration
	Env    map[string]string `env,omitempty`
	Before []string          `before,omitempty`
	After  []string          `after,omitempty`
	GoRun  bool              `gorun,omitempty`

	// Configuration for Commands
	Start   ContextConfig `start,omitempty`
	Stop    ContextConfig `stop,omitempty`
	Restart ContextConfig `restart,omitempty`
	Ps      ContextConfig `ps,omitempty`
	Logs    ContextConfig `logs,omitempty`
	Test    ContextConfig `test,omitempty`
}

type ContextConfig

type ContextConfig struct {
	Env    map[string]string `env,omitempty`
	Before []string          `before,omitempty`
	After  []string          `after,omitempty`
}

Jump to

Keyboard shortcuts

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