spec-kit
spec-kit copied to clipboard
feat(workflows): align CLI commands with extension/preset pattern
specify workflow is missing several commands and flags that specify extension and specify preset already support. These should be aligned to give users a consistent experience across all pluggable subsystems.
Gaps (confirmed via --help)
Missing from specify workflow |
Present in specify extension / specify preset |
|---|---|
add --dev |
Install from local directory for development |
add --from <url> |
Install from custom URL |
search --author |
Filter search results by author |
update |
Update installed workflow(s) to latest version |
enable / disable |
Toggle without removing |
Already aligned
list, add, remove, search, info, catalog list/add/remove — all present and working.
Not applicable to workflows
set-priority/add --priority— workflows run by name, they don't stack or compete for file resolutionsearch --verified— no verification process for workflows
Reference implementation
Use specify extension as the canonical pattern. CLI definitions are in src/specify_cli/__init__.py; catalog class is in src/specify_cli/extensions.py (ExtensionCatalog).
I would like to pick this up. Plan:
workflow add --dev <path>andadd --from <url>— explicit flags mirroringextension add, on top of the existing positional source handlingworkflow search --author— filter pass-through inWorkflowCatalog.searchworkflow update [id]— re-fetch from the recordedsourcein the registry, with version comparisonworkflow enable/disable—enabledflag in the workflow registry, respected byrun/list- Tests pinning each new command/flag, mirroring the existing extension command tests
Skipping set-priority and search --verified per the issue. One PR, specify extension as the canonical pattern.
@marcelsafin Go for it!