Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor handles execution of CLI commands and interaction with prompts.
func NewExecutor ¶
NewExecutor creates a new command executor.
func (*Executor) ExecuteWithOutput ¶
ExecuteWithOutput runs the CLI tool and returns output, handling prompts with expect. The function first processes output until both the prompt content and a confirmation (enter) have been sent. It then enters a monitoring phase that tracks the pattern "esc to interrupt" with ANSI escape codes, and exits when the pattern disappears for a specified time.
Click to show internal directories.
Click to hide internal directories.