MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / CheckInstalled

Function CheckInstalled

internal/agent/resolve.go:50–56  ·  view source on GitHub ↗

CheckInstalled verifies that the provider's CLI binary is found in PATH (or at cliPath).

(p loop.Provider)

Source from the content-addressed store, hash-verified

48
49// CheckInstalled verifies that the provider's CLI binary is found in PATH (or at cliPath).
50func 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}

Callers 3

resolveProviderFunction · 0.92
TestCheckInstalled_foundFunction · 0.85

Calls 2

CLIPathMethod · 0.65
NameMethod · 0.65

Tested by 2

TestCheckInstalled_foundFunction · 0.68