MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / makeProviderAPI

Function makeProviderAPI

internal/cli/global.go:28–34  ·  view source on GitHub ↗

makeProviderAPI constructs an appapi.ProviderAPI from the persistent CLI state. --store selects the SQLite DB path.

(state *globalState)

Source from the content-addressed store, hash-verified

26// makeProviderAPI constructs an appapi.ProviderAPI from the persistent CLI
27// state. --store selects the SQLite DB path.
28func makeProviderAPI(state *globalState) appapi.ProviderAPI {
29 api := appapi.ProviderAPI{}
30 if state != nil && state.storePath != "" {
31 api.DBPath = state.storePath
32 }
33 return api
34}
35
36// errEndpointsHandled is returned by PersistentPreRunE when the --endpoints
37// short-circuit ran successfully. App.Run recognises it and exits with code

Callers 5

applyCommandMethod · 0.85
launchCommandMethod · 0.85
doctorCommandMethod · 0.85
providerAPIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected