Documentation
¶
Index ¶
- func BuildEnv(base []string, projectEnv map[string]string, runInfo *run.Info) []string
- func GetEnv(env []string, key string) (string, bool)
- func Run(root string, name string, enabled EnabledSelector, launch LaunchFunc) error
- func RunNoSync(root string, name string, enabled EnabledSelector, launch LaunchFunc) error
- func RunWithStderr(root string, name string, enabled EnabledSelector, launch LaunchFunc, ...) error
- func SetEnv(env []string, key string, value string) []string
- type EnabledSelector
- type LaunchFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(root string, name string, enabled EnabledSelector, launch LaunchFunc) error
Run performs the standard client launch pipeline: load config, sync, create run dir, launch. Warnings from sync are printed to stderr before launching.
func RunNoSync ¶ added in v0.5.8
func RunNoSync(root string, name string, enabled EnabledSelector, launch LaunchFunc) error
RunNoSync performs the standard client launch pipeline without running sync.
func RunWithStderr ¶
func RunWithStderr(root string, name string, enabled EnabledSelector, launch LaunchFunc, stderr io.Writer) error
RunWithStderr is like Run but allows specifying a custom stderr writer for testing.
Types ¶
type EnabledSelector ¶
EnabledSelector returns the enabled flag for a client.
type LaunchFunc ¶
LaunchFunc launches a client after sync and run setup.
Click to show internal directories.
Click to hide internal directories.