executor

package
v0.2.29 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: 0

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 Executor added in v0.2.0

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

Executor executes a prompt.

func NewDockerExecutor added in v0.2.0

func NewDockerExecutor() Executor

NewDockerExecutor creates a new Executor using Docker.

Jump to

Keyboard shortcuts

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