ruff format
This commit is contained in:
parent
aaa9a750d3
commit
d50455a1e6
1 changed files with 4 additions and 3 deletions
|
|
@ -5,15 +5,15 @@ import warnings
|
||||||
def main():
|
def main():
|
||||||
"""Deprecated main entry point for the package."""
|
"""Deprecated main entry point for the package."""
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
# Show deprecation warning
|
# Show deprecation warning
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
"The 'cognee' command for cognee-mcp is deprecated and will be removed in a future version. "
|
"The 'cognee' command for cognee-mcp is deprecated and will be removed in a future version. "
|
||||||
"Please use 'cognee-mcp' instead to avoid conflicts with the main cognee library.",
|
"Please use 'cognee-mcp' instead to avoid conflicts with the main cognee library.",
|
||||||
DeprecationWarning,
|
DeprecationWarning,
|
||||||
stacklevel=2
|
stacklevel=2,
|
||||||
)
|
)
|
||||||
|
|
||||||
print("⚠️ DEPRECATION WARNING: Use 'cognee-mcp' command instead of 'cognee'")
|
print("⚠️ DEPRECATION WARNING: Use 'cognee-mcp' command instead of 'cognee'")
|
||||||
print(" This avoids conflicts with the main cognee library.")
|
print(" This avoids conflicts with the main cognee library.")
|
||||||
print()
|
print()
|
||||||
|
|
@ -24,4 +24,5 @@ def main():
|
||||||
def main_mcp():
|
def main_mcp():
|
||||||
"""Clean main entry point for cognee-mcp command."""
|
"""Clean main entry point for cognee-mcp command."""
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
asyncio.run(server_main())
|
asyncio.run(server_main())
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue