Shortcut for 'cgc delete
(
path: Optional[str] = typer.Argument(None, help="Path to delete"),
all_repos: bool = typer.Option(False, "--all", help="Delete all indexed repositories"),
yes: bool = typer.Option(False, "--yes", "-y", help="Skip the confirmation prompt (for CI/non-interactive use)"),
context: Optional[str] = typer.Option(None, "--context", "-c", help="Specific context to use")
)
| 3074 | |
| 3075 | @app.command("rm", rich_help_panel="Shortcuts") |
| 3076 | def delete_abbrev( |
| 3077 | path: Optional[str] = typer.Argument(None, help="Path to delete"), |
| 3078 | all_repos: bool = typer.Option(False, "--all", help="Delete all indexed repositories"), |
| 3079 | yes: bool = typer.Option(False, "--yes", "-y", help="Skip the confirmation prompt (for CI/non-interactive use)"), |
| 3080 | context: Optional[str] = typer.Option(None, "--context", "-c", help="Specific context to use") |
| 3081 | ): |
| 3082 | """Shortcut for 'cgc delete'""" |
| 3083 | # `yes` must be forwarded explicitly: omitted, it keeps its OptionInfo |
| 3084 | # sentinel, which is truthy — silently skipping the confirmation. |
| 3085 | delete(path, all_repos, yes=yes, context=context) |
| 3086 | |
| 3087 | @app.command("v", rich_help_panel="Shortcuts") |
| 3088 | def visualize_abbrev( |