NewExecutor creates a new Executor with the given title, command, and arguments.
(title string, command string, args ...string)
| 28 | |
| 29 | // NewExecutor creates a new Executor with the given title, command, and arguments. |
| 30 | func NewExecutor(title string, command string, args ...string) *executor { |
| 31 | return &executor{ |
| 32 | title: title, |
| 33 | command: command, |
| 34 | args: args, |
| 35 | msys2Env: false, // Default: no MSYS2 |
| 36 | msvcEnvs: "", // Default: no MSVC setup |
| 37 | workDir: "", // Default: inherit parent working directory |
| 38 | logPath: "", // Default: no logging |
| 39 | retryMaxAttempts: 0, // Default: no retry |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | // MSYS2Env enables/disables MSYS2 environment mode (Windows only). |
| 44 | func (e *executor) MSYS2Env(msys2Env bool) *executor { |
no outgoing calls