List installed workflows.
()
| 541 | |
| 542 | @workflow_app.command("list") |
| 543 | def 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") |
nothing calls this directly
no test coverage detected