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

Function load_shortcut

src/codegraphcontext/cli/main.py:1017–1026  ·  view source on GitHub ↗

Shortcut for 'cgc bundle load

(
    bundle_name: str = typer.Argument(..., help="Bundle name or path to load"),
    clear: bool = typer.Option(False, "--clear", help="Clear existing graph data before loading"),
    yes: bool = typer.Option(False, "--yes", "-y", help="Skip confirmation when using --clear"),
    context: Optional[str] = typer.Option(None, "--context", "-c", help="Specific context to use"),
)

Source from the content-addressed store, hash-verified

1015
1016@app.command("load", rich_help_panel="Bundle Shortcuts")
1017def load_shortcut(
1018 bundle_name: str = typer.Argument(..., help="Bundle name or path to load"),
1019 clear: bool = typer.Option(False, "--clear", help="Clear existing graph data before loading"),
1020 yes: bool = typer.Option(False, "--yes", "-y", help="Skip confirmation when using --clear"),
1021 context: Optional[str] = typer.Option(None, "--context", "-c", help="Specific context to use"),
1022):
1023 """Shortcut for 'cgc bundle load'"""
1024 # Must pass `context` explicitly: invoked as a plain function, Typer does not
1025 # resolve defaults, so an omitted parameter keeps its OptionInfo sentinel.
1026 bundle_load(bundle_name, clear, yes=yes, context=context)
1027
1028# ============================================================================
1029# REGISTRY COMMAND GROUP - Browse and Download Bundles

Callers

nothing calls this directly

Calls 1

bundle_loadFunction · 0.85

Tested by

no test coverage detected