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

Function _emit_workflow_json

src/specify_cli/workflows/_commands.py:264–271  ·  view source on GitHub ↗

Write a workflow payload as machine-readable JSON to stdout. Uses the builtin ``print`` rather than ``console.print`` so Rich markup interpretation, syntax highlighting, and line-wrapping can never alter the emitted JSON.

(payload: dict[str, Any])

Source from the content-addressed store, hash-verified

262
263
264def _emit_workflow_json(payload: dict[str, Any]) -> None:
265 """Write a workflow payload as machine-readable JSON to stdout.
266
267 Uses the builtin ``print`` rather than ``console.print`` so Rich
268 markup interpretation, syntax highlighting, and line-wrapping can
269 never alter the emitted JSON.
270 """
271 print(json.dumps(payload, indent=2))
272
273
274@contextlib.contextmanager

Callers 3

workflow_runFunction · 0.85
workflow_resumeFunction · 0.85
workflow_statusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected