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

Function workflow_list

src/specify_cli/workflows/_commands.py:543–563  ·  view source on GitHub ↗

List installed workflows.

()

Source from the content-addressed store, hash-verified

541
542@workflow_app.command("list")
543def workflow_list():
544 """List installed workflows."""
545 from .catalog import WorkflowRegistry
546
547 project_root = _require_specify_project()
548 registry = WorkflowRegistry(project_root)
549 installed = registry.list()
550
551 if not installed:
552 console.print("[yellow]No workflows installed.[/yellow]")
553 console.print("\nInstall a workflow with:")
554 console.print(" [cyan]specify workflow add <workflow-id>[/cyan]")
555 return
556
557 console.print("\n[bold cyan]Installed Workflows:[/bold cyan]\n")
558 for wf_id, wf_data in installed.items():
559 console.print(f" [bold]{wf_data.get('name', wf_id)}[/bold] ({wf_id}) v{wf_data.get('version', '?')}")
560 desc = wf_data.get("description", "")
561 if desc:
562 console.print(f" {desc}")
563 console.print()
564
565
566@workflow_app.command("add")

Callers

nothing calls this directly

Calls 5

listMethod · 0.95
WorkflowRegistryClass · 0.85
printMethod · 0.80
_require_specify_projectFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected