Return True when Google Workspace shortcut export is enabled.
(value: str | None = None)
| 23 | |
| 24 | |
| 25 | def google_workspace_enabled(value: str | None = None) -> bool: |
| 26 | """Return True when Google Workspace shortcut export is enabled.""" |
| 27 | raw = value if value is not None else os.environ.get("GRAPHIFY_GOOGLE_WORKSPACE", "") |
| 28 | return raw.strip().lower() in {"1", "true", "yes", "on"} |
| 29 | |
| 30 | |
| 31 | def _safe_yaml_str(value: str) -> str: |