MCPcopy Index your code
hub / github.com/github/spec-kit / _options_payload

Method _options_payload

tests/test_workflows.py:6614–6629  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

6612 from specify_cli.workflows._commands import _gate_outcome
6613
6614 def _options_payload(options):
6615 state = SimpleNamespace(
6616 status=SimpleNamespace(value="paused"),
6617 current_step_id="review",
6618 step_results={
6619 "review": {
6620 "type": "gate",
6621 "output": {
6622 "message": "m",
6623 "options": options,
6624 "choice": None,
6625 },
6626 }
6627 },
6628 )
6629 return _gate_outcome(state)["options"]
6630
6631 assert _options_payload([1, 2.5]) == ["1", "2.5"] # list
6632 assert _options_payload(("approve", "reject")) == ["approve", "reject"] # tuple

Callers

nothing calls this directly

Calls 1

_gate_outcomeFunction · 0.90

Tested by

no test coverage detected