Documentation ¶
Index ¶
- Variables
- func FindProjectConfig(config string) string
- func GetAfterFunc() func(c *cli.Context) error
- func GetBaseEnvVars() map[string]string
- func GetBeforeFunc() func(c *cli.Context) error
- func GetEnvForCommand(c *cli.Context) []string
- func GetStacks() []string
- func ParseGlobalConfig()
- func UseGoRun() bool
- type Config
- type ContextConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigPath string
Functions ¶
func FindProjectConfig ¶ added in v0.5.1
If a config file is specified, return it, otherwise try to find the nearest defaultConfigFile in parents
func GetAfterFunc ¶
func GetAfterFunc() func(c *cli.Context) error
func GetBaseEnvVars ¶
func GetBeforeFunc ¶
func GetBeforeFunc() func(c *cli.Context) error
func GetEnvForCommand ¶
func GetEnvForCommand(c *cli.Context) []string
func ParseGlobalConfig ¶
func ParseGlobalConfig()
Types ¶
type Config ¶
type Config struct { // Global Configuration Env map[string]string `yaml:"env,omitempty"` Before []string `yaml:"before,omitempty"` After []string `yaml:"after,omitempty"` GoRun bool `yaml:"gorun,omitempty"` // Stacks configuration (includes subfolders) Stacks []string `yaml:"stacks,omitempty"` // Configuration for Commands Build ContextConfig `yaml:"build,omitempty"` Export ContextConfig `yaml:"export,omitempty"` Install ContextConfig `yaml:"install,omitempty"` Logs ContextConfig `yaml:"logs,omitempty"` Ps ContextConfig `yaml:"ps,omitempty"` Restart ContextConfig `yaml:"restart,omitempty"` Start ContextConfig `yaml:"start,omitempty"` Stop ContextConfig `yaml:"stop,omitempty"` Test ContextConfig `yaml:"test,omitempty"` }
Click to show internal directories.
Click to hide internal directories.