Documentation
¶
Index ¶
- func BuildDockerCommand(ctx context.Context, containerName string, promptFilePath string, ...) *exec.Cmd
- func CreatePromptTempFile(ctx context.Context, promptContent string) (string, func(), error)
- func PrepareLogFile(ctx context.Context, logFile string) (*os.File, error)
- type DockerExecutor
- type Executor
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
CreatePromptTempFile creates a temp file with the prompt content and returns the path and cleanup function.
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.
Click to show internal directories.
Click to hide internal directories.