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

Function update

src/codegraphcontext/cli/main.py:1355–1369  ·  view source on GitHub ↗

Refresh an existing repository index. This command is intentionally small and hook-friendly; Git hooks installed with `cgc hook install` call it after commits and checkouts.

(
    path: Optional[str] = typer.Argument(None, help="Path to refresh. Defaults to current directory."),
    quiet: bool = typer.Option(False, "--quiet", "-q", help="Reduce output when running from automation"),
    context: Optional[str] = typer.Option(None, "--context", "-c", help="Specific context to use (overrides mode/default)"),
)

Source from the content-addressed store, hash-verified

1353
1354@app.command()
1355def update(
1356 path: Optional[str] = typer.Argument(None, help="Path to refresh. Defaults to current directory."),
1357 quiet: bool = typer.Option(False, "--quiet", "-q", help="Reduce output when running from automation"),
1358 context: Optional[str] = typer.Option(None, "--context", "-c", help="Specific context to use (overrides mode/default)"),
1359):
1360 """
1361 Refresh an existing repository index.
1362
1363 This command is intentionally small and hook-friendly; Git hooks installed
1364 with `cgc hook install` call it after commits and checkouts.
1365 """
1366 _load_credentials()
1367 if path is None:
1368 path = str(Path.cwd())
1369 update_helper(path, context, quiet=quiet)
1370
1371@app.command()
1372def clean(

Callers

nothing calls this directly

Calls 2

_load_credentialsFunction · 0.85
update_helperFunction · 0.85

Tested by

no test coverage detected