NewCodexProvider returns a Provider for the Codex CLI. If cliPath is empty, "codex" is used.
(cliPath string)
| 16 | // NewCodexProvider returns a Provider for the Codex CLI. |
| 17 | // If cliPath is empty, "codex" is used. |
| 18 | func NewCodexProvider(cliPath string) *CodexProvider { |
| 19 | if cliPath == "" { |
| 20 | cliPath = "codex" |
| 21 | } |
| 22 | return &CodexProvider{cliPath: cliPath} |
| 23 | } |
| 24 | |
| 25 | // Name implements loop.Provider. |
| 26 | func (p *CodexProvider) Name() string { return "Codex" } |
no outgoing calls