mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-09-14 20:16:53 +08:00
905 B
905 B
CLI Spec Command Spec
ADDED Requirements
Requirement: Interactive spec validation
The spec validate command SHALL support interactive selection when no spec-id is provided.
Scenario: Interactive spec selection for validation
- WHEN executing
openspec spec validatewithout arguments - THEN display an interactive list of available specs
- AND allow the user to select a spec to validate
- AND validate the selected spec
- AND maintain all existing validation options (--strict, --json)
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 validatewithout a spec-id - THEN do not prompt interactively
- AND print the existing error message for missing spec-id
- AND set non-zero exit code