SetLogPath sets the file path for execution logs (environment variables, command line, output).
(logPath string)
| 60 | |
| 61 | // SetLogPath sets the file path for execution logs (environment variables, command line, output). |
| 62 | func (e *executor) SetLogPath(logPath string) *executor { |
| 63 | e.logPath = logPath |
| 64 | return e |
| 65 | } |
| 66 | |
| 67 | // WithRetry enables automatic retry on command failure. |
| 68 | // maxAttempts controls how many times the command will be executed total (1 initial + N retries). |
no outgoing calls