executor

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: BSD-2-Clause Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDockerCommand added in v0.2.12

func BuildDockerCommand(
	ctx context.Context,
	containerName string,
	promptFilePath string,
	projectRoot string,
	home string,
) *exec.Cmd

BuildDockerCommand builds the docker run command with all necessary arguments.

func CreatePromptTempFile added in v0.2.12

func CreatePromptTempFile(ctx context.Context, promptContent string) (string, func(), error)

CreatePromptTempFile creates a temp file with the prompt content and returns the path and cleanup function.

func PrepareLogFile added in v0.2.12

func PrepareLogFile(ctx context.Context, logFile string) (*os.File, error)

PrepareLogFile creates the log directory and opens the log file for writing.

Types

type DockerExecutor added in v0.2.0

type DockerExecutor struct{}

DockerExecutor implements Executor using Docker.

func NewDockerExecutor added in v0.2.0

func NewDockerExecutor() *DockerExecutor

NewDockerExecutor creates a new DockerExecutor.

func (*DockerExecutor) Execute added in v0.2.0

func (e *DockerExecutor) Execute(
	ctx context.Context,
	promptContent string,
	logFile string,
	containerName string,
) error

Execute runs the claude-yolo Docker container with the given prompt content. It blocks until the container exits and returns an error if the exit code is non-zero. Output is streamed to both terminal and the specified log file.

type Executor added in v0.2.0

type Executor interface {
	Execute(ctx context.Context, promptContent string, logFile string, containerName string) error
}

Executor executes a prompt.

Jump to

Keyboard shortcuts

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