MCPcopy Index your code
hub / github.com/FSoft-AI4Code/CodeWiki / set_cli_context

Function set_cli_context

codewiki/src/config.py:28–31  ·  view source on GitHub ↗

Set whether we're running in CLI context (vs web app).

(enabled: bool = True)

Source from the content-addressed store, hash-verified

26_CLI_CONTEXT = False
27
28def 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
33def is_cli_context() -> bool:
34 """Check if running in CLI context."""

Callers 2

generateMethod · 0.90
_legacy_generate_docsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected