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)"),
)
| 1353 | |
| 1354 | @app.command() |
| 1355 | def 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() |
| 1372 | def clean( |
nothing calls this directly
no test coverage detected