CheckInstalled verifies that the provider's CLI binary is found in PATH (or at cliPath).
(p loop.Provider)
| 48 | |
| 49 | // CheckInstalled verifies that the provider's CLI binary is found in PATH (or at cliPath). |
| 50 | func CheckInstalled(p loop.Provider) error { |
| 51 | _, err := exec.LookPath(p.CLIPath()) |
| 52 | if err != nil { |
| 53 | return fmt.Errorf("%s CLI not found in PATH. Install it or set agent.cliPath in .chief/config.yaml", p.Name()) |
| 54 | } |
| 55 | return nil |
| 56 | } |