mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-09-14 20:16:53 +08:00
918 B
918 B
CLI Change Command Spec
ADDED Requirements
Requirement: Interactive show selection
The change show command SHALL support interactive selection when no change name is provided.
Scenario: Interactive change selection for show
- WHEN executing
openspec change showwithout arguments - THEN display an interactive list of available changes
- AND allow the user to select a change to show
- AND display the selected change content
- AND maintain all existing show options (--json, --deltas-only)
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 change showwithout a change name - THEN do not prompt interactively
- AND print the existing hint including available change IDs
- AND set
process.exitCode = 1