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

Function delete_abbrev

src/codegraphcontext/cli/main.py:3076–3085  ·  view source on GitHub ↗

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")
)

Source from the content-addressed store, hash-verified

3074
3075@app.command("rm", rich_help_panel="Shortcuts")
3076def 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")
3088def visualize_abbrev(

Callers

nothing calls this directly

Calls 1

deleteFunction · 0.85

Tested by

no test coverage detected