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])
| 262 | |
| 263 | |
| 264 | def _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 |
no outgoing calls
no test coverage detected