MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / cypher_legacy

Function cypher_legacy

src/codegraphcontext/cli/main.py:3041–3047  ·  view source on GitHub ↗

[Deprecated] Use 'cgc query' instead.

(
    query: str = typer.Argument(..., help="The read-only Cypher query to execute."),
    context: Optional[str] = typer.Option(None, "--context", "-c", help="Specific context to use"),
)

Source from the content-addressed store, hash-verified

3039# Keep old 'cypher' as alias for backward compatibility
3040@app.command("cypher", hidden=True)
3041def cypher_legacy(
3042 query: str = typer.Argument(..., help="The read-only Cypher query to execute."),
3043 context: Optional[str] = typer.Option(None, "--context", "-c", help="Specific context to use"),
3044):
3045 """[Deprecated] Use 'cgc query' instead."""
3046 console.print("[yellow]⚠️ 'cgc cypher' is deprecated. Use 'cgc query' instead.[/yellow]")
3047 cypher_helper(query, context)
3048
3049
3050

Callers

nothing calls this directly

Calls 2

cypher_helperFunction · 0.85
printMethod · 0.80

Tested by

no test coverage detected