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

Function index_abbrev

src/codegraphcontext/cli/main.py:3050–3060  ·  view source on GitHub ↗

Shortcut for 'cgc index

(
    path: Optional[str] = typer.Argument(None, help="Path to index"),
    force: bool = typer.Option(False, "--force", "-f", help="Force re-index (delete existing and rebuild)"),
    summarize: bool = typer.Option(False, "--summarize", "-s", help="Display a codebase summary after indexing"),
    context: Optional[str] = typer.Option(None, "--context", "-c", help="Specific context to use"),
    no_progress: bool = typer.Option(False, "--no-progress", help="Disable live progress rendering during indexing.")
)

Source from the content-addressed store, hash-verified

3048
3049@app.command("i", rich_help_panel="Shortcuts")
3050def index_abbrev(
3051 path: Optional[str] = typer.Argument(None, help="Path to index"),
3052 force: bool = typer.Option(False, "--force", "-f", help="Force re-index (delete existing and rebuild)"),
3053 summarize: bool = typer.Option(False, "--summarize", "-s", help="Display a codebase summary after indexing"),
3054 context: Optional[str] = typer.Option(None, "--context", "-c", help="Specific context to use"),
3055 no_progress: bool = typer.Option(False, "--no-progress", help="Disable live progress rendering during indexing.")
3056):
3057 """Shortcut for 'cgc index'"""
3058 # `summarize` must be passed explicitly: omitted, it keeps its OptionInfo
3059 # sentinel, which is truthy — so `cgc i` always printed the summary.
3060 index(path, force=force, summarize=summarize, context=context, no_progress=no_progress)
3061
3062@app.command("ls", rich_help_panel="Shortcuts")
3063def list_abbrev(

Callers

nothing calls this directly

Calls 1

indexFunction · 0.85

Tested by

no test coverage detected