MCPcopy Index your code
hub / github.com/github/spec-kit / workflow_catalog_remove

Function workflow_catalog_remove

src/specify_cli/workflows/_commands.py:1028–1042  ·  view source on GitHub ↗

Remove a workflow catalog source by index.

(
    index: int = typer.Argument(..., help="Catalog index to remove (from 'catalog list')"),
)

Source from the content-addressed store, hash-verified

1026
1027@workflow_catalog_app.command("remove")
1028def workflow_catalog_remove(
1029 index: int = typer.Argument(..., help="Catalog index to remove (from 'catalog list')"),
1030):
1031 """Remove a workflow catalog source by index."""
1032 from .catalog import WorkflowCatalog, WorkflowValidationError
1033
1034 project_root = _require_specify_project()
1035 catalog = WorkflowCatalog(project_root)
1036 try:
1037 removed_name = catalog.remove_catalog(index)
1038 except WorkflowValidationError as exc:
1039 console.print(f"[red]Error:[/red] {exc}")
1040 raise typer.Exit(1)
1041
1042 console.print(f"[green]✓[/green] Catalog source '{removed_name}' removed")
1043
1044
1045# ===== Workflow Step Commands =====

Callers

nothing calls this directly

Calls 4

remove_catalogMethod · 0.95
WorkflowCatalogClass · 0.85
printMethod · 0.80
_require_specify_projectFunction · 0.70

Tested by

no test coverage detected