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.")
)
| 3048 | |
| 3049 | @app.command("i", rich_help_panel="Shortcuts") |
| 3050 | def 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") |
| 3063 | def list_abbrev( |