mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-09-14 20:16:53 +08:00
904 B
904 B
CLI Spec Command Spec
ADDED Requirements
Requirement: Interactive spec show
The spec show command SHALL support interactive selection when no spec-id is provided.
Scenario: Interactive spec selection for show
- WHEN executing
openspec spec showwithout arguments - THEN display an interactive list of available specs
- AND allow the user to select a spec to show
- AND display the selected spec content
- AND maintain all existing show options (--json, --requirements, --no-scenarios, -r)
Scenario: Non-interactive fallback keeps current behavior
- GIVEN stdin is not a TTY or
--no-interactiveis provided or environment variableOPEN_SPEC_INTERACTIVE=0 - WHEN executing
openspec spec showwithout a spec-id - THEN do not prompt interactively
- AND print the existing error message for missing spec-id
- AND set non-zero exit code