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

Function update_helper

src/codegraphcontext/cli/cli_helpers.py:906–920  ·  view source on GitHub ↗

Update/refresh index for a path (alias for reindex). When *quiet* is True (e.g. when invoked from Git hooks with --quiet), Rich console output, including progress rendering, is suppressed.

(path: str, context: Optional[str] = None, quiet: bool = False)

Source from the content-addressed store, hash-verified

904
905
906def update_helper(path: str, context: Optional[str] = None, quiet: bool = False):
907 """Update/refresh index for a path (alias for reindex).
908
909 When *quiet* is True (e.g. when invoked from Git hooks with --quiet),
910 Rich console output, including progress rendering, is suppressed.
911 """
912 if quiet:
913 console.quiet = True
914 try:
915 reindex_helper(path, context)
916 finally:
917 console.quiet = False
918 return
919 console.print("[cyan]Updating repository index...[/cyan]")
920 reindex_helper(path, context)
921
922
923def clean_helper(context: Optional[str] = None):

Callers 1

updateFunction · 0.85

Calls 2

reindex_helperFunction · 0.85
printMethod · 0.80

Tested by

no test coverage detected