MCPcopy Create free account
hub / github.com/openclaw/gogcli / FromContext

Function FromContext

internal/app/runtime.go:160–163  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

158}
159
160func FromContext(ctx context.Context) (*Runtime, bool) {
161 runtime, ok := ctx.Value(runtimeContextKey{}).(*Runtime)
162 return runtime, ok && runtime != nil
163}
164
165func IOFromContext(ctx context.Context) (IO, bool) {
166 runtime, ok := FromContext(ctx)

Callers 15

withDriveTestOperationsFunction · 0.92
newTrackingSecretStoreFunction · 0.92
openAuthSecretsStoreFunction · 0.92
authorizeGoogleAccountFunction · 0.92
fetchAuthIdentityFunction · 0.92
withTestRuntimeFunction · 0.92
commandConfigStoreFunction · 0.92

Calls

no outgoing calls

Tested by 11

withDriveTestOperationsFunction · 0.74
withTestRuntimeFunction · 0.74
withPeopleTestServicesFunction · 0.74
TestRuntimeContextFunction · 0.56