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

Function watch_abbrev

src/codegraphcontext/cli/main.py:3101–3119  ·  view source on GitHub ↗

Shortcut for 'cgc watch

(
    path: str = typer.Argument(".", help="Path to watch"),
    context: Optional[str] = typer.Option(None, "--context", "-c", help="Specific context to use"),
    poll: bool = typer.Option(
        False,
        "--poll",
        help="Use watchdog's polling observer for Docker bind mounts and network filesystems.",
    ),
    sync_on_start: bool = typer.Option(
        False,
        "--sync-on-start",
        help=(
            "Synchronize already-indexed files before watching. "
            "Defaults off; use 'cgc index --force' for a full re-index."
        ),
    ),
)

Source from the content-addressed store, hash-verified

3099
3100@app.command("w", rich_help_panel="Shortcuts")
3101def watch_abbrev(
3102 path: str = typer.Argument(".", help="Path to watch"),
3103 context: Optional[str] = typer.Option(None, "--context", "-c", help="Specific context to use"),
3104 poll: bool = typer.Option(
3105 False,
3106 "--poll",
3107 help="Use watchdog's polling observer for Docker bind mounts and network filesystems.",
3108 ),
3109 sync_on_start: bool = typer.Option(
3110 False,
3111 "--sync-on-start",
3112 help=(
3113 "Synchronize already-indexed files before watching. "
3114 "Defaults off; use 'cgc index --force' for a full re-index."
3115 ),
3116 ),
3117):
3118 """Shortcut for 'cgc watch'"""
3119 watch(path, context=context, poll=poll, sync_on_start=sync_on_start)
3120
3121
3122# ============================================================================

Callers

nothing calls this directly

Calls 1

watchFunction · 0.85

Tested by

no test coverage detected