clients

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildEnv

func BuildEnv(base []string, projectEnv map[string]string, runInfo *run.Info) []string

BuildEnv merges base env with project env and run metadata.

func GetEnv

func GetEnv(env []string, key string) (string, bool)

GetEnv returns the value for the key from an env slice.

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 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.

func SetEnv

func SetEnv(env []string, key string, value string) []string

SetEnv sets or appends a key=value entry in an env slice.

Types

type EnabledSelector

type EnabledSelector func(cfg *config.Config) *bool

EnabledSelector returns the enabled flag for a client.

type LaunchFunc

type LaunchFunc func(project *config.ProjectConfig, runInfo *run.Info, env []string) error

LaunchFunc launches a client after sync and run setup.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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