env

package
v0.7.11 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestEnv

type TestEnv struct {
	HomeDir      string
	GithubURL    string
	AnthropicURL string
	CircleCIURL  string
	GithubToken  string
	AnthropicKey string
	CircleToken  string
	Extra        map[string]string
}

TestEnv builds an isolated environment for CLI invocations.

func NewTestEnv

func NewTestEnv(t *testing.T) *TestEnv

NewTestEnv creates a TestEnv with a fresh temp HOME directory.

func (*TestEnv) Environ

func (e *TestEnv) Environ() []string

Environ returns the environment as a []string for exec.Cmd.Env.

Jump to

Keyboard shortcuts

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