MCPcopy Create free account
hub / github.com/diillson/chatcli / resolveHubEnabled

Function resolveHubEnabled

cli/hub_local.go:70–72  ·  view source on GitHub ↗

resolveHubEnabled reports whether the hub is active (default on; off only when explicitly set to "false").

(ctx context.Context, store hub.Store)

Source from the content-addressed store, hash-verified

68// resolveHubEnabled reports whether the hub is active (default on; off only when
69// explicitly set to "false").
70func resolveHubEnabled(ctx context.Context, store hub.Store) bool {
71 return !strings.EqualFold(settingStr(ctx, store, hubKeyEnabled, envHubEnabled, "true"), "false")
72}
73
74// hubEnabledSource reports WHERE the hub enabled/disabled decision came from —
75// "db setting", "env CHATCLI_HUB_ENABLED" or "default". Continuity silently

Callers 3

RunGatewayForegroundMethod · 0.85
maybeEnableLocalHubMethod · 0.85

Calls 1

settingStrFunction · 0.85

Tested by 1