resolveHubEnabled reports whether the hub is active (default on; off only when explicitly set to "false").
(ctx context.Context, store hub.Store)
| 68 | // resolveHubEnabled reports whether the hub is active (default on; off only when |
| 69 | // explicitly set to "false"). |
| 70 | func 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 |