Documentation
¶
Overview ¶
Package codex implements the kool codex subcommand (install / ensure Codex CLI).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunForTest ¶
RunForTest runs the codex handler in-process (args after "kool codex"). Example: RunForTest([]string{"install", "--dry-run"}, stdout, stderr)
func SetDepsForTest ¶
func SetDepsForTest(d Deps) (restore func())
SetDepsForTest installs package-level deps for one test invocation. Returns restore; callers should defer restore under a process mutex.
Types ¶
type Deps ¶
type Deps struct {
LookPath func(file string) (string, error)
RunShell func(ctx context.Context, cmd string) error
RunVersion func(ctx context.Context, bin string) (string, error)
FetchLatest func(ctx context.Context) (string, error)
}
Deps are injectable for L2 doctests (nil fields → production defaults).
Click to show internal directories.
Click to hide internal directories.