Set whether we're running in CLI context (vs web app).
(enabled: bool = True)
| 26 | _CLI_CONTEXT = False |
| 27 | |
| 28 | def set_cli_context(enabled: bool = True): |
| 29 | """Set whether we're running in CLI context (vs web app).""" |
| 30 | global _CLI_CONTEXT |
| 31 | _CLI_CONTEXT = enabled |
| 32 | |
| 33 | def is_cli_context() -> bool: |
| 34 | """Check if running in CLI context.""" |
no outgoing calls
no test coverage detected