Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverGoctl ¶
DiscoverGoctl finds the goctl executable using multiple fallback strategies Returns the absolute path to goctl or an error if not found
Types ¶
type ExecuteResult ¶
ExecuteResult contains the result of a goctl command execution
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor handles safe execution of goctl commands
func NewExecutor ¶
NewExecutor creates a new goctl executor Discovers goctl path on initialization
func (*Executor) Execute ¶
func (e *Executor) Execute(args ...string) *ExecuteResult
Execute runs a goctl command with the given arguments Uses absolute paths and captures both stdout and stderr
func (*Executor) ExecuteInDir ¶
func (e *Executor) ExecuteInDir(dir string, args ...string) *ExecuteResult
ExecuteInDir runs a goctl command in a specific directory
type Validator ¶
type Validator struct{}
Validator validates generated code and project structure
func (*Validator) DirectoryExists ¶
DirectoryExists checks if a directory exists
func (*Validator) FileExists ¶
FileExists checks if a file exists
Click to show internal directories.
Click to hide internal directories.