Skip to main content

Module current

Module current 

Source
Expand description

The current feature: which unit a command works on when none is named, shown and switched by speccoder feature.

speccoder keeps no pointer of its own: the current feature is the format’s (Spec Kit: .specify/feature.json, which Spec Kit’s scripts, /speckit-* in an editor and speccoder all read), so every tool agrees on it. --feature and the format’s variable still override it for one command.

Functions§

clear
speccoder feature --clear.
list
speccoder feature: every feature, the current one marked.
reason_text
How the current feature was chosen, in words.
resolve
The feature query names: its exact name or directory; a number — the numeric prefix (2 is 002-…), else the position in the list; or a part of the name that only one feature has.
switch
speccoder feature <query>: makes the feature query names current.